module documentation
Common structured logging utilities.
| Class | |
Structured logging format to use. |
| Function | setup |
Set up structured logging. |
| Function | _elapsed |
Convert elapsed entry in structlog processor event dict to shorter format. |
| Function | _format |
Format given seconds into short human-readable string. |
| Function | _setup |
Undocumented |
| Function | _setup |
Undocumented |
| Constant | _LOGGER |
Undocumented |
| Variable | _logging |
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.