perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Worrall <abworr...@yahoo.com>
Subject Re: Partial logs
Date Tue, 21 Mar 2000 14:52:12 GMT
--- Joao Miguel Sa <jmsa@student.dei.uc.pt> wrote:
> 
> Hello,
> 
> I need to log only requests to a directory.

The conditional form of the CustomLog directive, combined with
SetEnvIf, is what you want !

E.g.

# If the request is for /some/dir, set some env to trigger logging
SetEnvIf  Request_URI ^/some/dir log_me=yes
CustomLog "logs/some_dir" somedir_format  env=log_me

 - Adam


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Mime
View raw message