[Zope-CMF] Logging errors in standard_error_message

Dennis Allison allison@shasta.Stanford.EDU
Wed, 2 Oct 2002 22:45:13 -0700


Take a look at http://www.zopelabs.com/cookbook/1010962341

It's a simple matter to modify the system to log all exceptions since they 
go through a single place.  Of course, it is a system mod which has all 
sorts of support implications, but it's a small change.

>From: "Chris McDonough" <chrism@zope.com>
>> FWIW, Zope 2.6 installs an error_log object by default in the root of
>> your Zope instance that does exactly what it sounds like you're trying
>> to do.
>>
>> On Wed, 2002-10-02 at 19:13, Jeff Ross wrote:
>> > I would like to capture all exceptions on my portal and store them in an
>> > error log. I've been able to capture some exceptions by modifying
>> > standard_error_message.pt in the skins directory to log exceptions when
>they
>> > occur. I've noticed, however, that not all exceptions trigger a redirect
>to
>> > standard_error_message.pt. It looks like some exceptions go to another
>> > standard_error_message altogether.
>> >
>> > For example, if I go to the root of my portal and type /invokeFactory, I
>get
>> > an error message, (Invalid request. The parameter, type_name, was
>omitted
>> > from the request.) but it's not my standard_error_message.pt.
>> >
>> > Any ideas?
>> >
>> > Thanks,
>> >
>> > Jeff