crested.utils.setup_logging

Contents

crested.utils.setup_logging#

crested.utils.setup_logging(log_level='INFO', log_file=None)#

Set up loguru logging for the package.

Default is set to log_level=”INFO” and log_file=None each time the package is imported.

Parameters:
  • log_level (str) – Logging level. Default is “INFO”.

  • log_file (str) – Path to the log file. If None, logs will be printed to stdout.