log-timestamp
Prepend timestamps to functions like console.log, console.warn, etc
Example
console;;console;
yields
Before log-timestamp
[2012-08-23T20:08:32.000Z] After log-timestamp
You can specify a custom function as well
{ return 'date="' + + '" message="%s"' };console;
yields
date="2012-08-23T20:08:37.000Z" message="hello world"
Also you can specify a custom prefix string
'#WHATEVER';console;
yields
#WHATEVER [2012-08-23T20:08:37.000Z] hello world
Install
npm install log-timestamp
Tests
npm test
License
MIT License