aequilibrae.utils#
Functions
|
Configures the root logger for AequilibraE. |
|
- aequilibrae.utils.basic_config(level: int = 20, stream=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, format: str = '%(asctime)s;%(levelname)s ; %(message)s') Handler | None[source]#
Configures the root logger for AequilibraE.
Sets up a specific handler that works well with tqdm progress bars if available and not running inside QGIS. It disables propagation to avoid interference from root loggers.
- Arguments:
level (
int, optional): The logging level to set. Defaults to logging.INFO.stream (
IO, optional): The stream to write logs to. Defaults to sys.stdout.format (
str, optional): The log format string. Defaults to DEFAULT_FORMAT.- Returns:
- handler (
logging.Handler): The handler attached to the ‘aequilibrae’ logger. If the logger already has a handler writing to standard out or standard error, returns None.
- handler (