Logging Utils#
- class ccat_data_transfer.logging_utils.BBCPLogHandler(base_log_path: str = '/var/log/ccat/bbcp_transfers')[source]#
Bases:
object- get_log_path(transfer_id: int, timestamp: datetime | None = None) Path[source]#
Generate structured log path for BBCP transfer.
- store_bbcp_output(session: Session, data_transfer: DataTransfer, stdout: bytes, stderr: bytes, success: bool, timestamp: datetime | None = None) DataTransferLog[source]#
Store BBCP output and create minimal log entry.
- class ccat_data_transfer.logging_utils.StructuredLogger(logger: Logger)[source]#
Bases:
objectWrapper for structured logging with consistent formatting
- ccat_data_transfer.logging_utils.get_structured_logger(name: str) StructuredLogger[source]#
Get a structured logger instance
- ccat_data_transfer.logging_utils.setup_celery_logging()[source]#
Configure Celery logging to use the same format as our application logging
Overview#
Logging configuration and utilities for the data transfer system.
Key Components#
Logging configuration
Log formatting and handlers
Logging utilities and helpers