solaris
solaris copied to clipboard
Add more thorough text logging output throughout
At present, there's limited text output generated by solaris
throughout the pipeline. There's some scattered verbose
argument options for text output, but these are limited. Two steps should be taken:
-
Come up with a systematic plan for text output. Should this be done using the
logging
python module, or just through verbosity arguments to various elements of the pipeline? Do we want to try to systematically implementtqdm
? -
Implement whatever is decided in (1).
FYI: I'm going to start implementing this. I'll try to write guidelines as I do so for future logging. Resources that I'm using to guide implementation:
https://docs.python-guide.org/writing/logging/
Will get the root logger at the top level, check and see if it already has a handler associated, and if not it'll generate a "default" handler that sets output level to warning and outputs to stdout. Child loggers will be created at submodules, but no new handlers will be created, so they'll inherit the root handler and formatter. They'll also inherit root reporting level (unless it's set differently within a function or class, which is an option that can be configured).