[Python-ideas] Fwd: [Python-Dev] An yocto change proposal in logging module to simplify structured logs support
Steven D'Aprano
steve at pearwood.info
Mon May 25 04:19:07 CEST 2015
On Mon, May 25, 2015 at 12:26:33AM +0200, Ludovic Gasc wrote:
> Hi Python-Ideas ML,
>
> To resume quickly the idea: I wish to add "extra" attribute to LogMessage,
> to facilitate structured logs generation.
The documentation for the logging module already includes a recipe for
simple structured logging:
https://docs.python.org/2/howto/logging-cookbook.html#implementing-structured-logging
At the other extreme, there is the structlog module:
https://structlog.readthedocs.org/en/stable/
How does your change compare to those?
--
Steve
More information about the Python-ideas
mailing list