Skip to content
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

Add support for dot notation when accessing custom keys #438

Open
dror-weiss opened this issue Jul 18, 2023 · 1 comment
Open

Add support for dot notation when accessing custom keys #438

dror-weiss opened this issue Jul 18, 2023 · 1 comment

Comments

@dror-weiss
Copy link

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.

@mcollina
Copy link
Member

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants