Improve analysis logging
Summary
This PR refines the approach taken to adding metadata about an analysis to log messages emitted during its processing. It fixes an issue where developers couldn't test their apps based on the log messages emitted during an analysis run.
Contents (#578)
New features
- Enable Octue log handler by default
Enhancements
- Avoid using deprecated datafile property in runner
- Add default Octue service Dockerfile that uses
python3.10
Fixes
- Swap out formatters instead of handlers during analyses
- Only use Octue formatter in analysis if envvar present
Refactoring
- Rename
AnalysisLogHandlerSwitcher
toAnalysisLogFormatterSwitcher
- Move
run_logged_subprocess
tooctue.utils.processes
Testing
- Add tests for
AnalysisLogFormatterSwitcher