dymoesco.utils.parse_and_setup_logging¶
-
dymoesco.utils.parse_and_setup_logging()¶ uses argparse to determine which logging level to use.
scripts that use parse_and_setup_logging can now be called with –loglevel=<LEVEL> and ‘–logger=<LOGGER>’ as argument.
Example
python3 script.py --loglevel=INFO logger=predictionwill output info logs from the Kalman Filter’s prediction logger to stdout (as opposed to only warnings by default). Seedymoesco.dynamics.statespace_models.Rn.gui()for an example logging.info.Notes
See https://docs.python.org/3/howto/logging.html#logging-to-a-file (a bit lower down) for more details about logging.