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

Support asctime field for timestamp #30

Open
morganchristiansson opened this issue Dec 17, 2019 · 3 comments
Open

Support asctime field for timestamp #30

morganchristiansson opened this issue Dec 17, 2019 · 3 comments

Comments

@morganchristiansson
Copy link

https://github.com/madzak/python-json-logger and other python json loggers tend to use asctime field.

This reflects the fieldname in python stdlib logging framework https://docs.python.org/3/library/logging.html

Would be great if asctime was automatically supported.

@aybabtme
Copy link
Collaborator

I'd love to support more formats! Do you have a PR for it?

@omerV81
Copy link

omerV81 commented Dec 8, 2022

Seems to work right now (with argument --time-fields asctime), perhaps it was added?

@aybabtme
Copy link
Collaborator

This argument allows any custom key, yes. However I would like to automatically detect most commonly used timestamp keys. I'll keep this issue around as a reminder.

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

No branches or pull requests

3 participants