Skip to content

Commit

Permalink
Added a new method FlowStreamComponentIntance.log().
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Apr 18, 2024
1 parent 56d532d commit 3955d4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flowstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,11 @@ FP.ondebug = function(a, b, c, d) {
this.main.$events.debug && this.main.emit('debug', this, a, b, c, d);
};

FP.onlog = function(a, b, c, d) {
// this == instance
this.main.$events.log && this.main.emit('log', this, a, b, c, d);
};

function newlogger(callback) {

var self = this;
Expand Down Expand Up @@ -1594,6 +1599,7 @@ FP.initcomponent = function(key, component) {
instance.dashboard = self.ondashboard;
instance.status = self.onstatus;
instance.debug = self.ondebug;
instance.log = self.onlog;
instance.throw = self.onerror;
instance.send = self.ontrigger;
instance.newmessage = newmessage;
Expand Down

0 comments on commit 3955d4c

Please sign in to comment.