mrv.utils – Configuration and logging¶
mrv.utils – Configuration, logging utilities.
Data downloads are dispatched through mrv.pipeline.download (source-aware).
The IB-specific downloader is accessible as mrv.utils.download_ib.download
if needed directly, but is not re-exported here.
- mrv.utils.setup_logging(cfg=None)¶
Configure Python logging from the
loggingsection of mrv config.When
logging.diris set, a timestamped log file is created automatically, e.g.logs/mrv_20260319_143012.log.
Sub-modules¶
Configuration (YAML)¶
mrv.utils.config – Load YAML configuration.
Single source of truth is config.yaml. No built-in defaults to maintain.
Logging setup¶
mrv.utils.log – Logging setup driven by config.yaml.
Call setup(cfg) once at application start to configure console + optional
file logging. All mrv modules use logging.getLogger(__name__) as usual.