I am using npm debug package to log messages to the console (instead of the regular console.log()). Is there a way to show timestamp of the message with this debug library? For example I'd like to display all log messages in the format:
debug("Server started")
And to get the output in a form:
[16:24:15] Server started
where 16:24:15 is the current time. Ideally I'd like to be able to specify the time format (eg. add milliseconds etc..).