[Zodb-checkins] CVS: Zope3/src/zodb/storage - base.py:1.5
Barry A. Warsaw
barry@wooz.org
Tue, 31 Dec 2002 11:22:20 -0500
>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:
>> BerkeleyBase.__init__(): Log at info level, not warn.
GvR> Are you *sure* that's what you want? When Tim & I converted
GvR> the zLOG calls to logging calls, we used the following
GvR> translation from the 7 zLOG levels to 5 logging levels, taken
GvR> 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)
GvR> The BSD logging calls were originally at the INFO level.
GvR> Also note that zLOG by default logs INFO and higher; logging
GvR> by default logs warn and higher.
"warn" seemed like a strange level to be logging messages which aren't
warnings, but are (sometimes) useful information. Given the above, I
think info is better; these messages are probably not generally useful
so probably shouldn't get logged by default.
-Barry