Structured Logging for Python¶

Release v20.2.0.dev0 (What's new?).

structlog makes logging in Python less painful and more powerful by adding structure to your log entries.

It’s up to you whether you want structlog to take care about the output of your log entries or whether you prefer to forward them to an existing logging system like the standard library’s logging module.

First steps:

If you’re not sure whether structlog is for you, have a look at Why….

If you can’t wait to log your first entry, start at Getting Started and then work yourself through the basic docs.

Once you have basic grasp of how structlog works, acquaint yourself with the integrations structlog is shipping with.