[Zope-dev] Re: zLOG changes
Fred Drake
fred at zope.com
Thu Apr 22 17:28:18 EDT 2004
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 <chris at example.com>
to sysadmin at example.com
to zope-email-notifications at example.com
subject Something blew up!
smtp-server mail at example.com
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
More information about the Zope-Dev
mailing list