aimbat.logger
Logging configuration for AIMBAT using loguru.
Logging is controlled by two settings (see aimbat._config):
log_level: minimum severity level to record. Valid levels from most to least verbose:TRACE,DEBUG,INFO,SUCCESS,WARNING,ERROR,CRITICAL. Defaults toINFO.logfile: path to the log file. Defaults toaimbat.login the current working directory.
Both settings can be overridden per project via environment variable or a
.env file in the current working directory:
Functions:
| Name | Description |
|---|---|
configure_logging |
Reconfigure loguru sinks based on current settings. |
configure_logging
Reconfigure loguru sinks based on current settings.
Removes all existing loguru handlers and adds a single file sink using
Settings.logfile and Settings.log_level from the active aimbat.settings
instance. Log files are rotated at 100 MB.