log-timestamp
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "log-timestamp", | ||
"description": "Prepend timestamps to functions like console.log, console.warn, etc", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Dave Eddy <dave@daveeddy.com> (http://www.daveeddy.com)", | ||
@@ -6,0 +6,0 @@ "contributors": [], |
@@ -25,3 +25,3 @@ log-timestamp | ||
``` js | ||
require('log-timestamp')(function() { 'date="' + Date.now() + '" message="%s"'); | ||
require('log-timestamp')(function() { return 'date="' + new Date().toISOString() + '" message="%s"' }); | ||
console.log('hello %s', 'world'); | ||
@@ -28,0 +28,0 @@ ``` |
2130