I have the following Winston logger format:
simple(),
colorize(),
timestamp({ format: 'YYYY-MM-DD HH:mm:ss.SSS' })
Which gives me timestamps in milliseconds resolution. What should I change in the format string to get the timestamp in microseconds?
So it turns out microseconds resolution is not supported in Winston. Winston is using fecha under the hood for timestamp formatting, and fecha does not support microseconds resolution at the moment. I opened the following github issue requesting fecha to add this feature.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With