Scribe.js/examples/sub-with_new_console.js

19 lines
421 B
JavaScript
Raw Normal View History

2014-10-23 22:03:48 +02:00
(function () {
//You can use the new console and all its loggers
//it's not too far away
var console = process.console;
module.exports = {
2014-12-20 10:09:14 +01:00
2014-10-23 22:03:48 +02:00
saySomething : function (msg) {
msg = "With new console - " + msg;
console.myLogger(msg); //I'm using my custom logger `myLogger`
//you can still use global.console object if you need to
}
};
}());