Changeset 918


Ignore:
Timestamp:
05/08/20 11:21:03 (4 years ago)
Author:
Maciej Komosinski
Message:

Created global LoggerToStdout? object so that all messages emitted by SDK loggers will be printf()'ed and consequently will appear in the JS console

Location:
js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • js/human_3d_alignment/src/index.jsx

    r911 r918  
    5151
    5252        window.genetics = new Module.PreconfiguredGenetics();
     53        window.logger = new Module.LoggerToStdout(Module.LoggerBase.Enable); // While this object exists, all messages emitted by SDK loggers will be printf()'ed and consequently will appear in the JS console.
    5354        this.layout = [
    5455            {name:'0,textviewer', x: 0, y: 0, w: 9, h: 1},
  • js/sdk/js_interface/js_interface.idl

    r916 r918  
    353353};
    354354
     355
    355356interface LoggerBase {
    356357        void LoggerBase(optional long opts = 0);
     
    383384        "LoggerToMemory::StoreAllMessages"
    384385};
     386
     387interface LoggerToStdout {
     388        void LoggerToStdout(optional long opts = 0, optional VirtFILE ffile);
     389};
     390
    385391
    386392interface VirtFILE {
Note: See TracChangeset for help on using the changeset viewer.