Date and Time on SC debug mode


Can we get date and time logging on debug mode?

server-connect:app (29/05/2020 12:06:01:345) would be just fine.

In debug options add a field to set format.


If unset just use ISO.

Or if you don’t want to go through all the fuss just

const debug = require('debug')('server-connect:app ('+ new Date().toLocaleString()+')');

For all the SC actions(app, template render, etc).

The debug module doesn’t output datetime on TTY output. The code you’ve given is also incorrect, it will output the same datetime on all logging, it is only set once on startup, so only displays the startup time.

Thanks for clarifying Patrick. Yeah I noticed the same timestamp for all actions so I removed it.