httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Akins <>
Subject Re: Pluggable mod_log_config
Date Mon, 03 Oct 2005 13:33:37 GMT
Akins, Brian wrote:

> Hmmm... Maybe custom loggers could be providers that have an init and a
> writer function.

Maybe have customLog be something like this:

CustomLog mysql://something common env=images
CustomLog file:///logs/my.log combined
CustomLog spread://somegroup refere
CustomLog buffer:///logs/other.log common

with file:// being the default.

Then to create a new log handler, just do a provider:

/*define init and writer function like normal*/

Then register your provider:

static const log_provider_t my_provider = {

static void register_hooks(apr_pool_t * p)
     ap_register_provider(p, LOG_PROVIDER_GROUP, "mysql", 


Brian Akins
Lead Systems Engineer
CNN Internet Technologies

View raw message