[Zope-Coders] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Sessions/BrowserIdManager.py death to zLOG

Andreas Jung andreas at andreas-jung.com
Tue May 18 12:50:34 EDT 2004



--On Dienstag, 18. Mai 2004 17:03 Uhr +0100 Chris Withers 
<chris at simplistix.co.uk> wrote:

> Andreas Jung wrote:
>
>> +            LOG.error('indeterminate error', exc_info=sys.exc_info())
>
> Does that work?
>
> I thought you had to use LOG.exception to get exceptions printed in a log
> message?

No, check out the logging module API.

-aj






More information about the Zope-Coders mailing list