httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [PATCH] Multiple env test for CustomLog directives in 1.3.26 (mod_log-config.c)
Date Fri, 09 Aug 2002 22:27:10 GMT
Alan Skea wrote:
> I got a bit frustrated by the lack of flexibility in the mod_log_config CustomLog directive.
 What I wanted was to make logging conditional on multiple environment variables that get
set by different modules, and also to be able to make logging behaviour depend on the value
of the variables rather than just their presence or absence.
> 
> I decide that the appropriate way to do this was to extend the syntax of the CustomLog
directive as follows:

I don't believe this is necessary.  You didn't present a specific use 
case, but let me try an example:

Log only if var1 is set to yes and var2 is not set to no:

SetEnvIf var1 yes logme
SetEnvIf var2 no !logme
CustomLog logs/access_log combined env=logme

If that doesn't solve your problem, please be more specific about what 
the problem is.

Joshua.


Mime
View raw message