-
Notifications
You must be signed in to change notification settings - Fork 45
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
Custom log level names with color #61
Labels
enhancement
New feature or request
Comments
This is a popular request. You can currently customize levels via the |
Raised a PR to provide this feature. |
if anyone will need this, thats how i manage to do it:
|
synfinatic
added a commit
to synfinatic/tint
that referenced
this issue
Aug 1, 2024
Users via the `LevelColorsMap` can now map their (custom) slog.Level => name and color. Fixes: lmittmann#61
synfinatic
added a commit
to synfinatic/tint
that referenced
this issue
Aug 1, 2024
Users via the `LevelColorsMap` can now map their (custom) slog.Level => name and color. Fixes: lmittmann#61
synfinatic
added a commit
to synfinatic/tint
that referenced
this issue
Aug 1, 2024
Users via the `LevelColorsMap` can now map their (custom) slog.Level => name and color. Fixes: lmittmann#61
synfinatic
added a commit
to synfinatic/tint
that referenced
this issue
Aug 1, 2024
Users via the `LevelColorsMap` can now map their (custom) slog.Level => name and color. Fixes: lmittmann#61
synfinatic
added a commit
to synfinatic/tint
that referenced
this issue
Aug 1, 2024
Users via the `LevelColorsMap` can now map their (custom) slog.Level => name and color. Fixes: lmittmann#61
synfinatic
added a commit
to synfinatic/tint
that referenced
this issue
Aug 1, 2024
Users via the `LevelColorsMap` can now map their (custom) slog.Level => name and color. Fixes: lmittmann#61
synfinatic
added a commit
to synfinatic/tint
that referenced
this issue
Aug 1, 2024
Users via the `LevelColorsMap` can now map their (custom) slog.Level => name and color. Fixes: lmittmann#61
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It'd be great to be able to customize the log level names and keep the colors.
I think simple package level variables would work for most use cases.
Happy to submit a PR if you agree with the feature.
The text was updated successfully, but these errors were encountered: