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 ability to only colorize the header, not the whole log message #108

Merged
merged 1 commit into from Mar 3, 2022

Conversation

evanphx
Copy link
Contributor

@evanphx evanphx commented Feb 24, 2022

This improves the readability of colored messages by only colorizing the level header rather than the whole message. On many terminals, some of the colors are hard to read for large segments of text. Colorizing just the header make it possible to easily visually scan the log output while preserving the readability of the log message itself.

Here is a random snippit showing the visual effect of this option:
CleanShot 2022-02-24 at 14 38 17@2x

@evanphx evanphx requested a review from dnephin February 24, 2022 22:37
Copy link

@phinze phinze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@briancain briancain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it 🎨

@evanphx evanphx merged commit b6b5567 into main Mar 3, 2022
@c4milo
Copy link

c4milo commented Mar 8, 2022

nice! @evanphx, would it be possible to tag a new version?

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.

None yet

4 participants