Skip to content

latent.prefect.logging_setup

Per-run logging setup for Prefect flows.

Functions

get_flow_logger

get_flow_logger() -> logging.Logger

Get the current flow logger.

Returns: Current flow logger

Raises: RuntimeError: If no flow logger is set up

setup_flow_logger

setup_flow_logger(flow_name: str, run_id: str) -> logging.Logger

Setup logger that writes to flow-specific log file.

Args: flow_name: Name of the flow run_id: Prefect run ID

Returns: Configured logger instance