[Zope-Coders] medusa logging featurelet

seb bacon seb@jamkit.com
Wed, 04 Sep 2002 09:52:39 +0100


I've added configurable logging to medusa, following the same syntax as:

   http://httpd.apache.org/docs-2.0/mod/mod_log_config.html

It means you can do things like:

   Common Log Format (CLF)
     "%h %l %u %t \"%r\" %>s %b"
   Common Log Format with Virtual Host
     "%v %h %l %u %t \"%r\" %>s %b"
   NCSA extended/combined log format
     "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
   Referer log format
     "%{Referer}i -> %U"
   Agent (Browser) log format
     "%{User-agent}i"

1) Shall I stick it in the head?
2) Where should the format string be defined?  An environment variable 
in the start script?  Somewhere else?  Currently it's hard coded into 
the CustomLogger module.
3) Hmm, CustomLogger is not a good name.  MedusaLogConfig?

Seb