[Python-ideas] Is this PEP viable?
evanbenadler at gmail.com
Mon Jul 17 01:05:57 EDT 2017
I would like to submit the following proposal. In the logging module, I
would like handlers (like file handlers and stream handlers) to have a
field for exc_info printing. This way, a call to logger.exception() will
write the stack trace to the handlers with this flag set, and only print
the message and other info to handlers without the flag set. This allows a
single logger to write to a less detailed console output, a less detailed
run log, and a more detailed error log.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas