urbanflow.logging_config¶
Centralized logging configuration for the urbanflow package.
This module sets up a logger for the urbanflow package that can be imported and used throughout the codebase to replace print statements with proper logging calls.
Functions
|
Set up and configure a logger for the urbanflow package. |
- urbanflow.logging_config.setup_logger(name='urbanflow', level=None, format_string=None)¶
Set up and configure a logger for the urbanflow package.
- Parameters:
name (str, optional) – Name of the logger. Defaults to “urbanflow”.
level (int, optional) – Logging level. If None, checks URBANFLOW_LOG_LEVEL environment variable, defaults to logging.INFO.
format_string (str, optional) – Custom format string for log messages. If None, uses a default format.
- Returns:
Configured logger instance.
- Return type:
logging.Logger