On Wednesday 21 April 2004 04:48 am, Chris Withers wrote:
 > I'm guessing there is some kind of log-to-console logger already?
 >
 > If so, why not just add that in zope.conf and comment it out when you move
 > to production?

That would work for me, but not everyone at ZC agreed, so I've made some 
changes that should be good for most people; see my message to Andreas and 
(and Zope-Dev) for a description of how things work on the trunk now.

 > BTW, is there a logger in Python 2.3/Zope 2.7 that sends log entries via
 > email? If not, I'll port MailingLogger to Zope 2.7 and see if I can make
 > it play nice :-)

Yes, there is.  You should be able to use it by adding a section like this 
inside your <eventlog> section in zope.conf:

    <email-notifier>
      from        Chris Withers <[EMAIL PROTECTED]>
      to          [EMAIL PROTECTED]
      to          [EMAIL PROTECTED]
      subject     Something blew up!
      smtp-server [EMAIL PROTECTED]

      level       error
      format      Timestamp: %(asctime)s\nComponent: %(name)s\nLevel: 
%(levelname)s (%(levelno)s)\n\n%(message)s
    </email-notifier>

My mailer might have wrapped that long line; sorry.  ;-(

Let me know if there are any problems with this.


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to