initial commit
This commit is contained in:
commit
4b60ece582
327 changed files with 28286 additions and 0 deletions
18
libjs/wDispatcher/logger.js
Normal file
18
libjs/wDispatcher/logger.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
"use strict";
|
||||
var DefaultHandler = require("./defaulthandler");
|
||||
|
||||
var Logger = DefaultHandler.inherit({
|
||||
"className": "Logger",
|
||||
"constructor": function() {
|
||||
DefaultHandler.fn.constructor.call(this);
|
||||
},
|
||||
"call": function(event) {
|
||||
console.log("Event went to default handler");
|
||||
console.log("Destination: " + event.getDestination().toString());
|
||||
console.log("Data: " + event.getData().toString());
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = Logger;
|
Loading…
Add table
Add a link
Reference in a new issue