API Reference

Note

The examples here use a very simplified configuration using the minimalistic structlog.processors.KeyValueRenderer for brevity and to enable doctests. The output is going to be different (nicer!) with the default configuration.

structlog Package

structlog.dev Module

structlog.testing Module

structlog.threadlocal Module

structlog.contextvars Module

structlog.processors Module

structlog.stdlib Module

structlog.twisted Module