poprox_recommender.logging_config#

Logging configuration logic for CLI tools in the POPROX recommenders.

Functions

setup_logging(*[, verbose, log_file])

Set up the Python logging infrastructure.

poprox_recommender.logging_config.setup_logging(*, verbose=False, log_file=None)#

Set up the Python logging infrastructure.

If the configuration options are not passed, it checks the environment variables POPROX_LOG_VERBOSE and POPROX_LOG_FILE.

Parameters:
  • verbose (bool | None) – If True, include DEBUG output on the console.

  • log_file (str | Path | None) – A log file to record logging output (in addition to the console).