Enable colored output for logging 03/65703/3 LOG-380-shared
authorliangke <lokyse@163.com>
Tue, 11 Sep 2018 08:37:09 +0000 (16:37 +0800)
committerliangke <lokyse@163.com>
Tue, 11 Sep 2018 09:05:10 +0000 (17:05 +0800)
commite00f8c9d9fc89f3de7f324704b3bd02c976e21e9
tree6c98c572bfb6e1f35bd9dd5f5aef7a06068d5a42
parent8dff758d560d3acdbd21a2ea11f4ba5a5ede1ff0
Enable colored output for logging

ColorFormatter class uses ANSI esacpe sequences
to render logging message in color, it uses standard colors
so it should workd on any UNIX terminal.

Make markerFormatter class to inherits from colorFormatter.

Change-Id: Ie24a06df861ca5d07796e78dea7e875daf149380
Issue-ID: MULTICLOUD-329
Signed-off-by: liangke <lokyse@163.com>
pylog/onaplogging/colorFormatter.py [new file with mode: 0644]
pylog/onaplogging/marker/markerFactory.py
pylog/onaplogging/markerFormatter.py
pylog/onaplogging/mdcformatter.py