hdx.utilities.easy_logging

Configuration of logging.

setup_logging

def setup_logging(console_log_level: str = "INFO",
                  log_file: Optional[str] = None,
                  file_log_level: str = "ERROR") -> None

[view_source]

Setup logging configuration. Intercepts standard logging and outputs errors to a file.

Arguments:

  • console_log_level str - Log level to use for console output. Defaults to INFO.
  • log_file Optional[str] - Path of log file. Defaults to None (No log file).
  • file_log_level str - Log level to use for console output. Defaults to ERROR.

Returns:

None