console-df
v1.0.2
Published
nodejs console.{log,info,error,warn,trace} with dateformat
Downloads
2
Readme
console-df
nodejs console.{log,info,error,warn,trace} with dateformat
Console{log,error,info,warn,trace} prefixed with date dateformat.
Install
npm i console-df
Usage
var rollback = require('console-df')('dd/m/yyyy');
console.log('Prefixed date in my logs'); // => 12/3/2015 Prefixed date in my logs
rollback();
console.log('No more prefixed logs'); // => No more prefixed logs