Logging Setup and Configuration

Primary functions and processors for configuring structlog for non-blocking, JSON-based output, including request ID correlation.

configure_logging() None[source]

Set up non-blocking, structured logging for the application.

add_correlation(logger: Logger, method_name: str, event_dict: dict[str, Any]) dict[str, Any][source]

Add request id to log message.

msgspec_dumps_str(data: Mapping[str, Any], **kwargs: Any) str[source]

Serialize a log record dictionary to a JSON string using msgspec.