Einen Publisher eingebaut, der auf das Terminal ausgibt, wird primär für debugging Zwecke gebaut.

This commit is contained in:
Tim Schumacher 2013-01-22 20:41:42 +01:00
parent f1565e2514
commit 2ffd0bd7d8

View file

@ -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() {