console-ten
Version:
Console-Ten is a simple console logging extension for node.js, it adds Timestamps and log type to the output.
11 lines (8 loc) • 373 B
JavaScript
var consoleTEN = require('../');
consoleTEN.init(console);
['error','warn','log','info','trace','debug'].forEach(function(f) {
console[f]('Hello Console-TEN!', {'testing':f});
});
console.log("Hello %s", "node", "...that string was formatted with %s", 'it should not say "Hello %s"');
console.log({'i':'am','an':'object'}, "...and I am a string!");