httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ondrej Sury <ond...@sury.org>
Subject Re: Pluggable mod_log_config
Date Mon, 03 Oct 2005 12:46:58 GMT
On Mon, 2005-10-03 at 07:58 -0400, Brian Akins wrote:
> 
> mod_log_config is "pluggable."   You can "replace" the normal logging 
> functions quite easily.

The word here is _replace_.  If you "replace" ap_log_writer and
ap_log_writer_init you need to implement all types of logging inside
ap_log_writer.

Imagine this type of config:
--cut here--
<VirtualHost 1.2.3.4>
  [...]
  CustomLog mysql://blah/data common

</VirtualHost>

<VirtualHost 1.2.3.5>
  [...]
  CustomLog $apache#1 combined # mod_log_spread syntax

</VirtualHost>

<VirtualHost 1.2.3.6>
  [...]
  CustomLog /var/log/apache2/access.log

</VirtualHost>
--cut here--

Then your replacement function would have to implement all those types
of log backends (ie. logging to mysql, spread, and files).  So you
cannot just easily add support for just another log backend.

Even now when you want to make some log files buffered and some not you
are out of luck and this could also be solved by making plugging more
"general".

Ondrej.
-- 
Ondrej Sury <ondrej@sury.org>

Mime
View raw message