You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Henri Schomäcker <hs...@byteconcepts.de> on 2003/09/20 13:10:48 UTC

write to special logfiles like ap_log_error(LOGFILEHANDLE, ....

Hi folks,

I'm searching for a possibility to log messages into different logfiles, 
depending on the error-level of the occuring error and some other decisions 
the module makes. It should also be possible to specify a previously defined 
logfile-handle to write to.
All this should be possible without any real existing entries in the apache2 
config-files.

I know, it would be easy to just use the piped Log API, but don't want to use 
an external logger because we want a all-in-one module solution to hold 
things easy while coding platform-independent.

This means, my module should be able to...
 - register new logfile-handles
 - choose one or perhaps even multiple handles to log an error to

So, how could this be realised and perhaps it is possible to create a new 
logfile directive?

Perhaps the best possibility would be to first dynamically add a new CustomLog 
with it's own log-format and then set env-vars for conditional logging based 
on the log-level of a occuring error. - But how could this be done?

Many thanks in advance,
    yours Henri