[Zope-dev] Using the error log

Joachim Werner joe at iuveno.de
Sun Dec 14 00:56:33 EST 2003


Hi!

I'd like to use the Site Error Log facility to log errors from my 
application.

What I want to do is catch all errors that occur when a page is rendered 
and log them to the site error log. The pages rendered consist of many 
modules that can trigger their own errors.

On screen there should be a short error message at the place the error 
occurred and a link to the full log entry in the error log.

So what I'd need to know is:

a) How can I write errors to the log from an excep: block in Python?
b) How can I get back the log ID for that specific error log entry to 
use it in my application?

Is there any written documentation on how to hook up the error log?

Cheers

Joachim

-- 
iuveno AG
Joachim Werner

Wittelsbacherstr. 23b
90475 Nürnberg

Tel.: +49 (0) 911 9883 984

E-Mail: joachim.werner at iuveno.de
WWW: http://www.iuveno.de




More information about the Zope-Dev mailing list