[ZODB-Dev] Re: [Zope-dev] Re: zLOG module deprecated

Florent Guillaume fg at nuxeo.com
Mon Jan 9 11:41:00 EST 2006


On 9 Jan 2006, at 17:20, Fred Drake wrote:

> On 1/9/06, Florent Guillaume <fg at nuxeo.com> wrote:
>> My point is that the python logging levels are insufficiently fine
>> grained.
>> The python logging framework leaves room for numeric levels and
>> registering equivalent strings, and indeed ZODB and zLOG have them
>> defined.
>>
>> I want to use them.
>
> Do you need someone else to define a constant for the level you want
> before you can use them?  There's a API in the logging module that
> allows you to pass the desired level in.  I see no reason to require a
> constant to be defined outside your code.

It's useful to have them standardized so that the logging module can  
output a standard string for them in the logs.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com




More information about the ZODB-Dev mailing list