ColorHandler not reset color
Bug #1731477 reported by
Vadim Ponomarev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.log |
Fix Released
|
Medium
|
Ben Nemec |
Bug Description
I am trying to use ColorHandler from oslo_log.handlers for highlighting output to stdout. I changed my logging configuration file, added:
[handler_
class = oslo_log.
formatter = context
args = (sys.stdout,)
Also, i added '%(color)s' attribute to logging_
I guess, that to solve the problem need pass a separate attribute to formatter on ColorHandler class, like a '%(color_reset)s' with value "\033[0m".
Changed in oslo.log: | |
importance: | Undecided → Medium |
To post a comment you must log in.
How did devstack handle colors?