logging_config
Logging configuration module for AutoCast.
This module provides centralized logging configuration for all AutoCast components, including console and file-based logging with customizable log levels. It ensures consistent logging behavior across all components of the AutoCast tool.
Functions
Configure logging for all AutoCast components. |
- configure_logging(level=None, log_file=None)
Configure logging for all AutoCast components.
If logging level is provided, it will be used regardless of parent logger log level. Otherwise, inherits from parent logger if exists, or fallback to default: logging.INFO.
- Parameters:
level – The logging level to use. Can be a string (e.g., “DEBUG”, “INFO”) or a logging constant (e.g., logging.DEBUG) default: None.
log_file – Optional path to a log file. If provided, logs will be written to this file in addition to stdout (default: None).