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 prettylog time format #645

Merged
merged 1 commit into from
Feb 4, 2024
Merged

Conversation

freak12techno
Copy link
Contributor

This PR adds a way to specify time format for logs displaying via --time-format flag.
Motivation for doing so: sometimes I need to look at really big amounts of logs, and it's not clear from time.Kitchen format which day these logs are from and which timezone they are in, so I want to be able to see this as well.

This adds importing of the 'flags' package, but this package is built in so this shouldn't cause any issues (my goals were to avoid adding something as a dependency, like cobra/viper).

Also this adds a base for future logging customisation via flags.

@rs rs merged commit 9e60b1c into rs:master Feb 4, 2024
5 checks passed
@freak12techno
Copy link
Contributor Author

@rs is it possible to also tag a new release with this one, just like you did with my previous PR?

@freak12techno freak12techno deleted the add-prettylog-time-format branch February 4, 2024 14:59
madkins23 pushed a commit to madkins23/zerolog that referenced this pull request Mar 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants