httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: detection of current log level
Date Tue, 19 Dec 2006 13:21:31 GMT
On Wed, 13 Dec 2006 11:01:07 -0800
"Brian McQueen" <mcqueenorama@gmail.com> wrote:

> I don't see how I can detect the current log level from the API.  Is
> it in there somewhere?  It would be nice to be able to do something
> where I dump req->headers_in if its at APLOG_INFO.  Otherwise I see
> wasted cycles going through headers_in just to do no logging.

AFAIK, no.  You can work around this by setting a flag in your
own module.  My mod_proxy_html goes further than this: it has
a compile-time setting to enable or disable the runtime option
for debug output at level INFO.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Mime
View raw message