Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/stone-framework-loader.ts @ 603:70992b38aa8a
new routable logging system in STDIO mode + flag support (with no value) in StartupParametersBuilder + 80 col indent
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 29 Apr 2019 15:09:48 +0200 |
parents | 548eed46f535 |
children | daf43666bbc2 |
comparison
equal
deleted
inserted
replaced
602:03c4b998fcd0 | 603:70992b38aa8a |
---|---|
57 public static Initialize( verbose: boolean, | 57 public static Initialize( verbose: boolean, |
58 callback: InitializationCallback) | 58 callback: InitializationCallback) |
59 { | 59 { |
60 Logger.defaultLogger.debug('Initializing WebAssembly Module'); | 60 Logger.defaultLogger.debug('Initializing WebAssembly Module'); |
61 | 61 |
62 (<any> window).errorFromCpp = function(text:any) { Logger.defaultLogger.errorFromCpp(text); }; | |
63 (<any> window).warningFromCpp = function(text:any) { Logger.defaultLogger.warningFromCpp(text); }; | |
64 (<any> window).infoFromCpp = function(text:any) { Logger.defaultLogger.infoFromCpp(text); }; | |
65 (<any> window).debugFromCpp = function(text:any) { Logger.defaultLogger.debugFromCpp(text); }; | |
66 | |
62 // (<any> window). | 67 // (<any> window). |
63 (<any> window).StoneFrameworkModule = { | 68 (<any> window).StoneFrameworkModule = { |
64 preRun: [ | 69 preRun: [ |
65 function() { | 70 function() { |
66 Logger.defaultLogger.debug('Loading the Stone Framework using WebAssembly'); | 71 Logger.defaultLogger.debug('Loading the Stone Framework using WebAssembly'); |