-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bad translateTime/localTime output #7
Comments
I'm not sure what you are proposing. Can you make an example before/after your proposal? |
@mcollina first question is I got weird output when using pino-pretty as global cli. echo '{"level":30,"time":1522431328992,"msg":"hello world","pid":42,"hostname":"foo","v":1}' | pino-pretty
// current
--localTime // [1522431328992] INFO (42 on foo): hello world
--dateFormat 'xx' // [1522431328992] INFO (42 on foo): hello world
-t --localTime // [2018-03-31 01:35:28.992 +0800] INFO (42 on foo): hello world
-t --dateFormat 'xx' // [2018-03-31 01:35:28] INFO (42 on foo): hello world
// propose, don't need to pass -t/--translateTime when -n -d
--localTime // [2018-03-31 01:35:28.992 +0800] INFO (42 on foo): hello world
--dateFormat 'xx' // [2018-03-31 01:35:28] INFO (42 on foo): hello world |
Thank you for catching the error. I have resolved it in v1.0.1. I also went ahead and made |
dateFormat
orlocalTime
args, shoud we implicit enabletranslateTime
?The text was updated successfully, but these errors were encountered: