Skip to content

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
@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