[Zope] Getting Zope code to output to event.log

Andrew Milton akm at theinternet.com.au
Wed Aug 5 18:46:39 EDT 2009


+-------[ Ken Winter ]----------------------
|
| > -----Original Message-----
| > From: Andrew Milton [mailto:akm at theinternet.com.au]
| > Sent: Wednesday, August 05, 2009 3:49 PM
| > To: Ken Winter
| > Cc: 'Zope List'
| > Subject: Re: [Zope] Getting Zope code to output to event.log
| > 
| > +-------[ Ken Winter ]----------------------
| > |
| > | I figure these modules have to be reinstalled or re-somethinged to get
| > my
| > | changes activated, but I don?t know how to do this.  Can you help?
| > 
| > [this assumes the code is actually being called]
| > 
| > You are probably logging at a level below the level that will be output
| > into the log.
| > 
| > LOG.info() is about the lowest level that will go out by default.
| > 
| > Without seeing any examples from you it's hard to tell.
| 
| Here's an example of the traceback from the error I'm trying to debug.  I
| assume the fact that a module appears in the traceback proves that it is
| being called.

And you have your logging level set to what?

Look in your zope.conf for <eventlog> it should be similar to;

<eventlog>
  level INFO
  <logfile>
    path $INSTANCE/log/event.log
  </logfile>
</eventlog>

You can also try changing logger.info to logger.warn or logger.error

-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list