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

Amazing log #585

Open
xasai opened this issue Aug 29, 2023 · 1 comment
Open

Amazing log #585

xasai opened this issue Aug 29, 2023 · 1 comment

Comments

@xasai
Copy link

xasai commented Aug 29, 2023

This log looks really great, but it is implemented with slog

image

Does somebody know how we can implement it with zerolog. Is it possible with zerolog.ConsoleWriter ?

@mitar
Copy link
Contributor

mitar commented Oct 15, 2023

Yes, ConsoleWriter can be configured to format logs in this way. See its FormatTimestamp, FormatLevel, and FormatFieldValue fields. This should be trivial.

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