ctxlog¶
A structured logging library for Python that allows for context-rich, nested logs.
This library was inspired by the Canonical Log Lines, which emphasizes the importance of reducing the amount of noise in logs for better observability and debugging. With the addition of log chaining, ctxlog allows to create log trees that can be used to track complex operations and their context, similar to tracing mechanisms.
Features¶
Structured Logging: Structured logs with context fields with optional JSON serialization
Context-Rich: Extend the logs with additional context information over the course of an action
Log Chaining: Create nested log contexts for tracking complex operations