[Python-Dev] Using logging in the stdlib and its unit tests
solipsis at pitrou.net
Wed Dec 8 12:12:20 CET 2010
On Wed, 08 Dec 2010 11:48:16 +0100
Georg Brandl <g.brandl at gmx.net> wrote:
> Am 08.12.2010 10:42, schrieb Antoine Pitrou:
> >> But errors don't pass silently, do they? The usual way to present errors
> >> is still by raising exceptions.
> > Or logging them.
> > http://docs.python.org/dev/library/logging.html#logging.Logger.exception
> Yes, thank you I'm aware of the exception() method. But hopefully standard
> library modules don't use it to report exceptions to code that uses them?
I'm not aware of that, but there are certainly third-party libs using
it (think an HTTP server that wants to log an error in one of its
request handlers without the error taking the whole server down).
More information about the Python-Dev