-
Notifications
You must be signed in to change notification settings - Fork 43
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
Support for 256-color output #35
Comments
To add onto this, it would be useful to be able to change the background colour as well as the foreground colour. Right now it's hard to distinguish critical logs from error logs. |
Related to issue 35 on the coloredlogs issue tracker: xolox/python-coloredlogs#35
Related to issue 35 on the coloredlogs issue tracker: xolox/python-coloredlogs#35
Related to #35. Most of the changes required for this were actually implemented in the humanfriendly package (see the issue above). The only changes required in coloredlogs were: - Bumping the version number of the humanfriendly requirement. - Updating the ANSI to HTML conversion code to support background colors and 256 color mode. While doing so I made the code a bit more robust against malformed and unsupported ANSI escape sequences. - Documenting how it all works. This will follow in the next commit which is going to be a rather big one (hence why I see some value in keeping it separate from the implementation changes).
Thanks for the feedback Antony and Matthew. Release 9.0 of coloredlogs adds support for 256 color mode and background colors. As suggested by Antony the |
It would be appreciated if it was possible to use 256-color output (https://en.wikipedia.org/wiki/ANSI_escape_code#Colors), e.g. by allowing the "color" field of DEFAULT_{FIELD,LEVEL}_STYLES to be a 0-255 integer.
The text was updated successfully, but these errors were encountered: