Popular recipes tagged "exception" and "logging" but not "uncertainties" and "debug"http://code.activestate.com/recipes/tags/-uncertainties+exception+logging-debug/2009-05-27T17:43:56-07:00ActiveState Code Recipesself-logging exceptions (Python)
2009-05-27T17:43:56-07:00geremy condrahttp://code.activestate.com/recipes/users/4170000/http://code.activestate.com/recipes/576781-self-logging-exceptions/
<p style="color: grey">
Python
recipe 576781
by <a href="/recipes/users/4170000/">geremy condra</a>
(<a href="/recipes/tags/exception/">exception</a>, <a href="/recipes/tags/logging/">logging</a>).
Revision 3.
</p>
<p>Pretty frequently I find myself needing to log my exceptions, and rather than produce a tangled mess of boilerplate code, I went ahead and put together this snippet to act as a base class for all those exceptions.</p>