A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-March/021511.html below:

[Python-Dev] PEP 282 comments

[Python-Dev] PEP 282 commentsJeremy Hylton jeremy@zope.com
Wed, 20 Mar 2002 16:10:59 -0500
I think the log4j levels are sufficient.  zLOG has more
levels, but it's hard to figure out what to use them for
:-).

zLOG does have a nice feature for passing an exception info
to a log call.  I'd like to see this as a standard feature,
e.g.

logger.info("A normal exception occurred",
    exc_info=sys.exc_info())

The idea is the any of the log calls could also include a
formatted traceback in the log.  (I suppose this means that
the Handlers need a pluggable way to format exceptions.)
This is useful for all log levels.  In a long running
server, you may get exceptions that are unexpected but no so
important that you're going to fail or bring the server
down.

What's the current status of this PEP?  I like the general
outline of stuff, but it feels a little fuzzy.  That is, it
seems to present a high-level description and a bunch of
options.  I'd like to see the concrete APIs for all of the
objects.

I'd also love to get at least a prototype implementation.
It would be need to replace the zLOG in Zope3 with a new
logging implementation that follows the PEP.

Jeremy



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4