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 support for custom levels and colorizing #70

Closed
wants to merge 1 commit into from

Conversation

synfinatic
Copy link

Users via the LevelColorsMap can now map their (custom) slog.Level => name and color.

Fixes: #61

@synfinatic
Copy link
Author

Hi @lmittmann I haven't included unit tests yet, since wasn't sure if you were cool with this general approach.

Users via the `LevelColorsMap` can now map their (custom)
slog.Level => name and color.

Fixes: lmittmann#61
@synfinatic
Copy link
Author

oh, this won't work with Options.AddSource :-/ So yeah, don't see this being viable since tint is so opinionated.

@synfinatic synfinatic closed this Aug 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.

Custom log level names with color
1 participant