onaplogging: Docstrings, refactor, type hinting 42/112042/2
authorEli Halych <illia.halych@t-mobile.pl>
Wed, 2 Sep 2020 13:10:35 +0000 (13:10 +0000)
committerEli Halych <illia.halych@t-mobile.pl>
Mon, 7 Sep 2020 08:52:24 +0000 (08:52 +0000)
commit7035aed700a463fd171807526475baf84c1434e7
tree9d0e7c4c8252f431ac3e12c0f5086c1c8b625f79
parent314ee85cf7c8a98dd21d5d12e4013b9f742b1012
onaplogging: Docstrings, refactor, type hinting

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
24 files changed:
.gitignore
pylog/onaplogging/colorFormatter.py
pylog/onaplogging/logWatchDog.py
pylog/onaplogging/marker/marker.py
pylog/onaplogging/marker/markerFactory.py
pylog/onaplogging/marker/markerFilter.py
pylog/onaplogging/marker/markerHandler.py
pylog/onaplogging/markerFormatter.py
pylog/onaplogging/markerLogAdaptor.py
pylog/onaplogging/mdcContext.py
pylog/onaplogging/mdcformatter.py
pylog/onaplogging/monkey.py
pylog/onaplogging/utils/__init__.py [new file with mode: 0644]
pylog/onaplogging/utils/styles.py [new file with mode: 0644]
pylog/onaplogging/utils/system.py [moved from pylog/onaplogging/utils.py with 90% similarity]
pylog/onaplogging/utils/tools.py [new file with mode: 0644]
pylog/requirements.txt
pylog/test_requirements.txt
pylog/tests/test_color_formatter.py
pylog/tests/test_log_watchdog.py
pylog/tests/test_marker_formatter.py
pylog/tests/test_monkey.py
pylog/tests/test_utils.py
pylog/tox.ini