Logging implementation cleanup
There are around 16+ locations with duplicate code, related to Logging - it needs better code reuse. A wrapper utility for logging might be in order, before going forward.
EDIT: the following class and requirements has been conceived in this issue, due to the implementation cleanup, but will not be addressed by this issue. It is partly being addressed by issue #16 (closed) #17 (closed) #18 (closed) #19 (closed) #20 (closed) .
Working title: LogBook.py
Requirements:
- be fully tested ( #17 (closed) )
- Produces loggers based on configuration (cfg file) ( #16 (closed) #18 (closed) #19 (closed) #20 (closed) )
- should be responsible for enabling ERS and file logging ( #18 (closed) #19 (closed) )
- should create unique logs for each location ( #20 (closed) )
- should keep compatibility with CheckThread ( #18 (closed) )
if logging to ERS w/o valid partition is problematic:
- then it should only log to ERS if IPC-Partition is valid ( No Issue created yet )