configure_alembic_logging

safir.logging.configure_alembic_logging(log_level=LogLevel.INFO)

Set up logging for Alembic.

This configures Alembic to use structlog for output formatting so that its logs are also in JSON. This helps Google’s Cloud Logging system understand the logs.

Parameters:

log_level (LogLevel | str, default: <LogLevel.INFO: 'INFO'>) – The Python log level. May be given as a LogLevel enum (preferred) or a case-insensitive string.

Return type:

None