radio/libjs/wDispatcher/logger.js

19 lines
512 B
JavaScript
Raw Permalink Normal View History

2018-08-04 21:46:25 +00:00
"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;