[Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/branches/srichter-twisted-integration/src/zope/app/server/ Reimplemented common access log using Twisted's log framework. It uses our

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Apr 21 08:09:31 EDT 2005


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.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list