Clean-up of logging functionality
Formatting of log messages. What goes go which log? Turn off propagation, or implement filtering?
Approach:
- Rename loggers, so that every case propagates only to its next higher level: "project.case_NNN", or "study_XXX.case_YYY", or "project.study_ZZZ".
- Add logging.Filter to Project and Study logHandlers. - This filter should accept only logRecords from next-level child loggers - In event from child logger, only the first line should be processed. (Following lines should contain only details, which are displayed only in the log of the object where the event is logged. ) - Also prepend tag to message from child logger, to show which object (Case or Study name) issued the event.