Einen Publisher eingebaut, der auf das Terminal ausgibt, wird primär für debugging Zwecke gebaut.
This commit is contained in:
parent
f1565e2514
commit
2ffd0bd7d8
1 changed files with 7 additions and 0 deletions
7
event.js
7
event.js
|
@ -126,10 +126,17 @@ EventTool.prototype.publishIdentica = function() {
|
|||
log('Verschicke einen Dent');
|
||||
}
|
||||
|
||||
EventTool.prototype.publishConsole = function() {
|
||||
var self = this;
|
||||
var view = self.processEventData();
|
||||
log(util.inspect(view));
|
||||
}
|
||||
|
||||
EventTool.prototype.setupPublishers = function() {
|
||||
this.on('mail',this.publishMail);
|
||||
this.on('identica',this.publishIdentica);
|
||||
this.on('latex',this.publishLatex);
|
||||
this.on('console',this.publishConsole);
|
||||
}
|
||||
|
||||
EventTool.prototype.processEvents = function() {
|
||||
|
|
Reference in a new issue