module documentation

Common structured logging utilities.

Class LogFormat Structured logging format to use.
Function setup_logging Set up structured logging.
Function _elapsed_to_ms Convert elapsed entry in structlog processor event dict to shorter format.
Function _format_elapsed Format given seconds into short human-readable string.
Function _setup_console_logging Undocumented
Function _setup_key_value_logging Undocumented
Constant _LOGGER Undocumented
Variable _logging_initialized Global flag indicated whether logging is initialized.
def setup_logging(*, log_levels: Mapping[str, int | str] | None = None, log_format: LogFormat = LogFormat.AUTOMATIC):

Set up structured logging.

def _elapsed_to_ms(_, __, event_dict: MutableMapping[str, Any]) -> MutableMapping[str, Any]:

Convert elapsed entry in structlog processor event dict to shorter format.

def _format_elapsed(seconds: float) -> str:

Format given seconds into short human-readable string.

def _setup_console_logging():

Undocumented

def _setup_key_value_logging():

Undocumented

_LOGGER =

Undocumented

Value
logging.getLogger(__name__)
_logging_initialized: bool =

Global flag indicated whether logging is initialized.