src.config.log_config

Centralized logging configuration.

Sets up file-based logging with configurable log level and format (via environment variables). Suppresses noisy logs from watchfiles and uvicorn. Use get_logger(name) to retrieve a module-specific logger.

Module Contents

src.config.log_config.LOG_LEVEL
src.config.log_config.LOG_FORMAT = '%(asctime)s - %(levelname)s - %(name)s - %(message)s'
src.config.log_config.LOG_DIR
src.config.log_config.RUN_TIMESTAMP
src.config.log_config.RUN_LOG_DIR = None
src.config.log_config.LOG_FILE = None
src.config.log_config.bind_repo_log_dir(repo_log_dir: str) str

Routes app logs into the active repo run folder.

src.config.log_config.get_logger(name: str)

Retrieve a logger instance with the specified name.

Args:

name (str): The name of the logger to retrieve.

Returns:

logging.Logger: The logger instance associated with the given name.

src.config.log_config.get_run_log_dir() str | None

Retrieve the directory path for run logs.

Returns:

The path to the run log directory or None if not set.

Return type:

str | None