perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fred Moyer <f...@redhotpenguin.com>
Subject Re: Skip or minimise Apache log phase
Date Wed, 08 Oct 2008 21:05:23 GMT
André Warnier wrote:
> Fred Moyer wrote:
>> André Warnier wrote:
> 
> Thanks for the answer and the above code.
> But what about the following ?
> 
> http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler
> quote
> [...]
>  it simply returns Apache2::Const::DECLINED, letting other log handlers 
> to do the logging. Though it could return Apache2::Const::OK since all 
> other log handlers will be run anyway.

Ah right, PerlLogHandler is RUN_ALL - my bad.  I remember wanting to do 
something similar a while ago and ended up just marking those log 
entries so that I could 'grep -v MY_IGNORE' the log and not have to deal 
with them.

> unquote
> 
> as compared to your
> 
> And then write your own PerlLogHandler which returns Apache2::Const::OK
> (which should tell Apache to skip the log handler phase).
> 
> ?
> 
> Of course I can try it, but if you already know..
> 

Mime
View raw message