aboutsummaryrefslogtreecommitdiffstats
path: root/pylog/onaplogging
AgeCommit message (Collapse)AuthorFilesLines
2020-09-07onaplogging: Docstrings, refactor, type hintingEli Halych15-423/+1395
Identify and document functionalities. Describe parameters and their types, exception descriptions and types, extensions, return types and descriptions. Preserve Python 2.7 and 3.x compatibility. Add Python 2.7 to Tox testing. Extract code to utility files. Add properties for readability and maintainability, fix naming conventions. Deprecate old methods and attributes. Issue-ID: REQ-420 Signed-off-by: Eli Halych <illia.halych@t-mobile.pl> Change-Id: I19297e40fad743ec68aa04612ecbb11f61f2abec
2020-07-13Pylog test suiteMichal Jagiello5-23/+50
Prepare test suite for onaplogging library. Add utils to check Python version. Issue-ID: LOG-1229 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I12c431c10f61fceaf70d5ae36581dfd5a876ef72
2019-06-26pylog is not compatible with python3maopengzhang1-2/+2
fix mdcContext bugs Change-Id: I29117652382e15e5eec2cf0cb91c573beed4526e Issue-ID: LOG-1072 Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
2019-02-13upgrade pylog versionliangke10-21/+19
upgrade latest version of pylog to 1.0.7 fix pep8 error use relative imports Change-Id: I705756b0778f89fbce62559ea0f108fd35efff5e Issue-ID: MULTICLOUD-481 Signed-off-by: liangke <lokyse@163.com>
2018-09-11Enable colored output for loggingLOG-380-sharedliangke4-30/+170
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>
2018-09-06Support Marker in python loggingliangke12-42/+540
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>
2018-09-05Python3 compatibleliangke2-15/+78
Upgrade code compatibly with python-3.x Change-Id: I04f2e7a92d21f161a2e4cc904743043394616145 Issue-ID: MULTICLOUD-327 Signed-off-by: liangke <lokyse@163.com>
2018-03-19 Fix some issuesliangke2-8/+8
1 Fix pep8 issue. 2 Add version file for staging and release job. 3 Modify 'traceback.print_exc()' code without Exception object in it. Change-Id: Id6d42a1a671f9cd8fdcf266bdb8f468889681bb9 Issue-ID: MULTICLOUD-151 Issue-ID: LOG-161 Signed-off-by: liangke <lokyse@163.com>
2018-03-01 Submit python logging library seed codeliangke5-0/+422
Change-Id: I4c039a667d7b8c7a257b2d50f94370785100a968 Issue-ID: MULTICLOUD-151 Issue-ID: LOG-161 Signed-off-by: liangke <lokyse@163.com>