-
-
Notifications
You must be signed in to change notification settings - Fork 975
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
Use color red for error messages #304
Comments
I just noticed the messages I get are warnings, not errors. Maybe you can include them or give them a different color (e.g. yellow).
|
One way you can do this right now, albeit for all logging messages, is to specify a custom log message format string with ANSI color codes in them, given your terminal understands ANSI codes. (And while there are other ways of implementing colored console output, I'm not planning on adding support for anything other than ANSI codes) A minimal config file that uses bold red for all logging messages:
|
supports custom log message formats for each loglevel and, by extension, custom ANSI codes and colors for errors and warnings (#304)
You can now specify a log message format string for each log level. For example:
will produce red errors, yellow/orange warnings, bold white infos, and grey debug messages. And here is a list of possible ANSI color codes: https://bluesock.org/~willkg/dev/ansi.html#ansicodes (replace |
For easier spotting of errors.
The text was updated successfully, but these errors were encountered: