Closed odix2 closed 10 years ago
@odix2 Add a timestamp
field to the log messages like:
log.info('some message', {timestamp: (new Date()).toISOString()});
If you have a ton of log messages I suggest either making a wrapper around them that automatically adds this parameter. Or forking this to automatically add the timestamp.
@ibash great answer!
Hi. I send logs with winston-loggly, but I see this notice on all my logs when I view my log lines in Loggly webpage.
message: Timestamp field extracted from Syslog header is missing TZ type: SyslogClockOrTimezoneWrong
Any idea on how to set this?