[Zodb-checkins] CVS: Zope3/src/zodb/storage - base.py:1.5

Guido van Rossum guido@python.org
Tue, 31 Dec 2002 11:14:23 -0500

> BerkeleyBase.__init__(): Log at info level, not warn.

Are you *sure* that's what you want?  When Tim & I converted the zLOG
calls to logging calls, we used the following translation from the 7
zLOG levels to 5 logging levels, taken from zLOG/EventLogger.py in the
Zope 2.7 trunk:

    zLOG severity                      PEP282 severity
    -------------                      ---------------
    PANIC (300)                        critical (50)
    ERROR (200), PROBLEM (100)         error (40)
    INFO (0)                           warn (30)
    BLATHER (-100)                     info (20)
    DEBUG (-200), TRACE (-300)         debug (10)

The BSD logging calls were originally at the INFO level.

Also note that zLOG by default logs INFO and higher; logging by
default logs warn and higher.

--Guido van Rossum (home page: http://www.python.org/~guido/)