configure_logging#
- movement.utils.logging.configure_logging(log_level=10, logger_name='movement', log_directory=PosixPath('/home/runner/.movement'))[source]#
Configure the logging module.
This function sets up a circular log file with a rotating file handler.
- Parameters:
log_level (int, optional) – The logging level to use. Defaults to logging.INFO.
logger_name (str, optional) – The name of the logger to configure. Defaults to “movement”.
log_directory (pathlib.Path, optional) – The directory to store the log file in. Defaults to ~/.movement. A different directory can be specified, for example for testing purposes.