mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-25 06:45:10 +00:00
19 lines
425 B
JavaScript
19 lines
425 B
JavaScript
|
(function () {
|
||
|
|
||
|
|
||
|
//You can use the new console and all its loggers
|
||
|
//it's not too far away
|
||
|
var console = process.console;
|
||
|
|
||
|
module.exports = {
|
||
|
|
||
|
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
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
}());
|