src.asqi.logging_config

Attributes

Functions

create_container_logger(→ logging.Logger)

Create and configure a dedicated logger for container logs with a custom display name.

configure_logging(→ None)

Configure centralized logging for the entire application.

Module Contents

src.asqi.logging_config.asqi_logger
src.asqi.logging_config.create_container_logger(name: str = 'asqi.container_logs', display_name: str | None = None) logging.Logger

Create and configure a dedicated logger for container logs with a custom display name.

Args:

name: The internal name of the logger. display_name: The display name to show in log messages (if provided).

Returns:

The configured logger instance.

src.asqi.logging_config.configure_logging(app_log_level: str | None = None, lib_log_level: str = 'WARNING', integrate_dbos: bool = True) None

Configure centralized logging for the entire application.

This is the single entry point for all logging setup. It configures a root handler for unified output and allows setting different log levels for the application’s code versus third-party libraries.

Args:
app_log_level: Log level for the ‘asqi’ namespace (DEBUG, INFO, etc.).

Defaults to ASQI_LOG_LEVEL env var, or “INFO”.

lib_log_level: Log level for all other loggers (e.g., third-party libraries). integrate_dbos: If True, attempt to integrate with DBOS observability.