hdx.utilities.easy_logging
module hdx.utilities.easy_logging
Configuration of logging.
Functions
-
setup_logging — Setup logging configuration. Intercepts standard logging and outputs errors to a file.
setup_logging(console_log_level: str = 'INFO', log_file: str | None = None, file_log_level: str = 'ERROR') → None
Setup logging configuration. Intercepts standard logging and outputs errors to a file.
Parameters
-
console_log_level : str — Log level to use for console output. Defaults to INFO.
-
log_file : str | None — 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 — None