On Thursday 21 April 2005 06:38, Chris Withers wrote:
> Why are you looking to use this rather than Python's logging package?

The observer below clearly uses the Python logging package:

   def __init__(self, logger=None):
       if logger is None:
           logger = logging.getLogger('accesslog')
       self.logger = logger

Twisted has its own logging framework and the Twisted Web server logs to this 
framework and not the standard Python one. So we have to hook into it, which 
this code exactly does.

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to