Hi! How can I create a new log file, e.g. "mylog.log", this is to log specific jobs in a different log file of "event.log". Best Regards Nuno
--On 19. September 2005 19:19:38 +0100 Nuno <rekconk@gmail.com> wrote:
Hi!
How can I create a new log file, e.g. "mylog.log", this is to log specific jobs in a different log file of "event.log".
I think you can not reuse the zLOG API of Zope for custom logfiles. You need to implement your own logging based on the Python 'logging' module. Check the Python documentation for information for details. -aj
Andreas Jung wrote:
I think you can not reuse the zLOG API of Zope for custom logfiles. You need to implement your own logging based on the Python 'logging' module. Check the Python documentation for information for details.
Well, he may just be fine specifying an additional handler in zope.conf. That said, I'd love to one day have the time to really let zope.conf support multiple log streams like ZConfig does... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Am Montag, 19. September 2005 20:19 schrieb Nuno:
Hi!
How can I create a new log file, e.g. "mylog.log", this is to log specific jobs in a different log file of "event.log".
depending on your needs, the EventLogManager Product might suit you: http://www.zope.org/Members/mcdonc/Products/EventLogManager Cheers, Sascha
participants (4)
-
Andreas Jung -
Chris Withers -
Nuno -
Sascha Ottolski