Support Marker in python logging 33/64933/2
authorliangke <lokyse@163.com>
Thu, 6 Sep 2018 07:37:38 +0000 (15:37 +0800)
committerliangke <lokyse@163.com>
Thu, 6 Sep 2018 08:05:39 +0000 (16:05 +0800)
commita350ca2b4995df6d75c9021dd537589896dccff6
treecfc501c24990e51a8f18823681ae962c3f9ad464
parent0303dc6e5210eee33de05a087a8ea40e80d43fb9
Support Marker in python logging

1 Add 'Marker' feature which carry extra contextual
information for loggers, can be used to mark a single log
statement
2 Make MDC Formatter have "marker" label.

Change-Id: I21ac547b97c49190393d57ff290dcbc3ae20da2a
Issue-ID: MULTICLOUD-328
Signed-off-by: liangke <lokyse@163.com>
12 files changed:
pylog/onaplogging/__init__.py
pylog/onaplogging/logWatchDog.py
pylog/onaplogging/marker/__init__.py [new file with mode: 0644]
pylog/onaplogging/marker/marker.py [new file with mode: 0644]
pylog/onaplogging/marker/markerFactory.py [new file with mode: 0644]
pylog/onaplogging/marker/markerFilter.py [new file with mode: 0644]
pylog/onaplogging/marker/markerHandler.py [new file with mode: 0644]
pylog/onaplogging/markerFormatter.py [new file with mode: 0644]
pylog/onaplogging/markerLogAdaptor.py [new file with mode: 0644]
pylog/onaplogging/mdcContext.py
pylog/onaplogging/mdcformatter.py
pylog/onaplogging/monkey.py