Hi everyone,

I have trouble with the LogLevel parameter in Apache Configuration and
generation of undesired log entries.

More precisely, if I set (for example) the LogLevel to "error", I only get
error and more critical logs AND also "notice" logs (but not warn logs).

If I set to anything more critical than notice, I still get notice logs.

For more details :

Some versions : 
Red Hat Entreprise Linux 3
Apache 2.0.46 (rpm : 2.0.46-44.ent)
Mod_perl 1.99_09 (rpm : 1.99_09-10.ent)

I'm using a PerlTransHandler module in a SSL-enabled VirtualHost.

My module code begins with the following :

--------- Code Extract

 sub handler {
     my $r = shift;
     $rlog = $r->log ;
     $r->handler("perl-script"); #ok, let's do it
     $r->push_handlers(PerlHandler => \&proxy_handler);
     return OK;
 }

 sub proxy_handler {
        #my($r)= @_;
        my $r = shift;
        $rlog = $r->log ;
[snip]

         $rlog->notice("This message is always printed despite the
Loglevel\n");
         $rlog->error("This message is printed only if the Loglevel is error
or lower\n");
}
1
----------- End of code extract

Does somebody have an idea about this ?

Thanks in advance for any answer.
Sincerely yours, Mathieu MILLET.

--
Mathieu MILLET - RATP SIT/IST/EPR
mailto:[EMAIL PROTECTED]
---- 

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to