Log a timestamp when restarting #52

focusaurus opened this Issue Nov 6, 2012 · 0 comments

2 participants


In wrapper.js function log, I tweaked the log format to have a basic timestamp.

console.log('[\x1B[' + csi + 'm' + level.toUpperCase() + '\x1B[0m] ' + msg + ' | ' + new Date())

I often want to sanity check that my latest code has really been loaded and I find myself killing the node-dev process "just in case" when I'm worried maybe it hasn't restarted recently enough. A timestamp would give me more confidence that everything is working as it should.

This was referenced Nov 7, 2012
@fgnass fgnass closed this in 7eb4ade Mar 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment