[Zope-dev] Re: Developing plugins for PluggableAuthService
Lennart Regebro
regebro at nuxeo.com
Wed Sep 1 05:19:36 EDT 2004
Chris Withers wrote:
> Lennart Regebro wrote:
>
>> Chris Withers wrote:
>>
>>> Is there any chance I could tempt you to change these to be Python
>>> 2.3 style logging calls?
>>
>>
>>
>> Sure. remind me of the syntax. :)
>
>
> import logging
>
> logger = logging.getLogger('event.whatever')
>
> logger.error('whatever',exc_info=1)
>
> You could also read:
>
> http://docs.python.org/lib/module-logging.html
>
> ...for a more complete description :-)
>
> cheers,
>
> Chris
OK, Thanks. I'm noticing that (with Zope 2.7.2) when I do this, I do not
get the modulname (whatever) nor the exception level WARNING printed to
the log. Is this a config error, or am I doing something wrong? Because
quite obviously, it should be there, right?
More information about the Zope-Dev
mailing list