rigging.logging
We use loguru for logging. This module provides a function to configure logging handlers.
To just enable rigging logs to flow, call logger.enable("rigging")
after importing the module.
LogLevelLiteral = t.Literal['trace', 'debug', 'info', 'success', 'warning', 'error', 'critical']
module-attribute
#
Valid logging levels.
configure_logging(log_level: LogLevelLiteral, log_file: pathlib.Path | None = None, log_file_level: LogLevelLiteral = 'debug') -> None
#
Configures common loguru handlers.
Parameters:
-
log_level
(LogLevelLiteral
) –The desired log level.
-
log_file
(Path | None
, default:None
) –The path to the log file. If None, logging will only be done to the console.
-
log_file_level
(LogLevelLiteral
, default:'debug'
) –The log level for the log file.