benbria / bunyan-debug-stream

A stream for bunyan that writes log entries as human readable output.
MIT License
30 stars 9 forks source link

Date Format #12

Closed mashaalmemon closed 6 years ago

mashaalmemon commented 6 years ago

Hi There,

Any way to easily specify the date format? Would love to get UTC time with ms if possible and easy.

Thanks.

jwalton commented 6 years ago

I just pushed a change that lets you pass in a custom function in the options:

new BunyanDebugStream({
    showDate: (time, entry) => return time.toISOString()
});

That should let you use whatever format you want. If that doesn't fix it for you, please feel free to reopen. (semantic-release should comment here with the new version number when this change gets published.)

benbriadeploy commented 6 years ago

:tada: This issue has been resolved in version 2.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: