Ben Nemec 9da1f158b2 Provide reset_color key on log record
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
2018-06-01 17:53:27 +00:00
2018-05-03 10:16:08 +01:00
2018-04-27 19:01:50 +02:00
2018-03-24 21:02:30 -04:00
2017-04-08 22:52:25 +08:00
2018-04-27 19:54:15 +00:00
2017-03-03 00:03:04 +00:00
2018-05-01 09:57:43 -04:00

Team and repository tags

image

oslo.log -- Oslo Logging Library

Latest Version

Downloads

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).

Description
Logging library.
Readme 7.5 MiB
Languages
Python 100%