
When logging with color, it is necessary to reset the color at the end of each line to avoid the color bleeding into subsequent log lines. This change adds a new key to the record called 'reset_color' that serves as a shortcut to the escape sequence to reset the color. It also provides documentation for the ColorHandler class that explains how to use it. Change-Id: I68f1c716cbed241f79fa65dae1affe810b8e6e30 Closes-Bug: 1731477
Team and repository tags
oslo.log -- Oslo Logging Library
The oslo.log (logging) configuration library provides standardized configuration for all openstack projects. It also provides custom formatters, handlers and support for context specific logging (like resource id's etc).
- Free software: Apache license
- Documentation: https://docs.openstack.org/oslo.log/latest
- Source: https://git.openstack.org/cgit/openstack/oslo.log
- Bugs: https://bugs.launchpad.net/oslo.log
Description
Languages
Python
100%