Open dror-weiss opened 1 year ago
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Since this related, pino-pretty doen't handle well error display when using nestedKey
on pino.
Either pino-pertty allow dot notation for timestampKey
& errorLikeObjectKeys
or pino-pretty
need to have a nestedKey
option like pino.
@mcollina let us know which solution is preferred
pino-pretty should have a nestedKey
option too!
Hello,
In Pino, I'm using its
nestedKey
feature with a custom time field that I want Pino-Pretty will parse. However, the--timestampKey
supports only fields in the root of the log entry.I would like to provide
--timestampKey nested_key.time
to be used as the time value.This is also relevant to all custom keys the library allows to override.