New submission from David Silverman: It would be useful to have the ability to push logs onto a stack. This way you can log events to the stack. If an error occurred, you could pop the stack and output the log events. If no error occurred, you could pop the stack and discard the logs.
An example would be when you call a function it could push logs onto the log stack as the function is executing. If an error is encountered, you can pop/output the logs to provide more details. But, if no error is encountered, the detailed logs can be popped and discarded. ---------- components: Library (Lib) messages: 252557 nosy: dasil...@cisco.com priority: normal severity: normal status: open title: Enhancement to Logging - Logging Stack type: enhancement _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25344> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com