httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch ...@sfritsch.de>
Subject Per-module / per-dir loglevel configuration
Date Sun, 11 Apr 2010 11:16:09 GMT
Hi,

here is the next version of the per-module loglevel patch. I have followed 
Jeff's suggestion and, instead of defining APLOG_MODULE_INDEX pointing to 
the module_index member of the module struct, I now define AP_MODULE_VAR 
pointing to the module struct directly. http_log.h will #error if 
AP_MODULE_VAR is not defined.

I have also added the capability to configure the loglevel per directory. 
So, for example, you can now do

<Files favicon.ico>
    LogLevel core:crit
</Files>

to get rid of the file not found warnings for favicon.ico. The conn_rec 
also got a log configuration field. So in principle it would be possible 
for a module to change the logging for some specific client IPs, but I 
haven't implemented that, yet.

The new version is available at

http://people.apache.org/~sf/per-module-loglevel-v3/

Split into chunks:

0001-Add-macro-wrappers-for-ap_log_-error.patch
0002-Introduce-log-levels-trace1-.-trace8.patch
0003-Introduce-SSLLOG_MARK-in-preparation-to-redefine-AP.patch
0004-move-find-module-logic-into-separate-function.patch
0005-introduce-per-module-log-levels.patch
0006-Adjust-mod_ssl-logging-to-make-it-compile-again.patch
0007-define-AP_MODULE_VAR-in-module-files.patch
0008-define-AP_MODULE_VAR-in-core-files-and-remove-defaul.patch
0009-use-more-loglevel-accessor-macros.patch
0010-add-loglevel-to-request_rec-and-conn_rec.patch
0011-Introcduce-per-dir-loglevel-configuration.patch
0012-Remove-loglevel-entry-in-core_dir_config-which-has.patch
0013-Adjust-loglevels-to-log-less-at-levels-INFO-and-DEBU.patch
0014-Replace-LogLevelDebugDump-with-TRACE-log-levels.patch
0015-Replace-DumpIOLogLevel-with-trace-log-level.patch
0016-Replace-RewriteLog-RewriteLogLevel-with-trace-log-le.patch

or the complete patch:

per-module-loglevel-v3.patch

Cheers,
Stefan


Mime
View raw message