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

Coloring message types #125

Open
h3xdumb opened this issue Mar 31, 2018 · 3 comments
Open

Coloring message types #125

h3xdumb opened this issue Mar 31, 2018 · 3 comments

Comments

@h3xdumb
Copy link

h3xdumb commented Mar 31, 2018

Is it possible to color the message types for stdout?
Greetings

@leaveye
Copy link

leaveye commented May 18, 2018

same requirement, colored levels are beautiful.

@geronimo-stilton
Copy link

meantime you could use sed. here is an example:

tail -f mylog.log | sed --unbuffered -e 's/(.DEBUG.)/\o033[32m\1\o033[39m/' -e 's/(.ERROR.)/\o033[31m\1\o033[39m/' -e 's/(.INFO.)/\o033[36m\1\o033[39m/' -e 's/(.WARN.)/\o033[35m\1\o033[39m/'

@mfide
Copy link

mfide commented Jul 27, 2022

coloring required for stdout

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

4 participants