You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Saurabh Goyal <Sa...@citysearch.com> on 2000/07/19 22:48:48 UTC

Customized Module For Logging In Transfer Log

Hi,

I am new to apche and mod_perl. I am trying to write apache module to write
some additional parameters to transfer log (access.log). Is anybody have an
idea, how can we write additional stuff to access.log including the
defaults. Any help appreciated.

Thanks,
> SGoyal

Re: Customized Module For Logging In Transfer Log

Posted by darren chamberlain <da...@boston.com>.
Saurabh Goyal (Saurabh_Goyal@citysearch.com) said something to this effect:
> Hi,
> 
> I am new to apche and mod_perl. I am trying to write apache module to write
> some additional parameters to transfer log (access.log). Is anybody have an
> idea, how can we write additional stuff to access.log including the
> defaults. Any help appreciated.

Check out mod_log_config, one of the standard modules that comes with Apache.
Chances are, you are already using this module and just need to add create
the appropriate CustomLog directive.

http://www.apache.org/docs/mod/mod_log_config.html

If you are looking to log something that is not defined by mod_log_config,
can put it into the r->notes table and access if via the "%{NoteName}n"
option.

(darren)

-- 
Money is better than poverty, if only for financial reasons.
-- Woody Allen

Re: Customized Module For Logging In Transfer Log

Posted by "Alan E. Derhaag" <ad...@wolfenet.com>.
Saurabh Goyal <Sa...@citysearch.com> writes:

> Hi,
> 
> I am new to apche and mod_perl. I am trying to write apache module to write
> some additional parameters to transfer log (access.log). Is anybody have an
> idea, how can we write additional stuff to access.log including the
> defaults. Any help appreciated.
> 
> Thanks,
> > SGoyal

You might look into Apache::DBILogger and subclass it more use it for
a template to begin with.

Re: Customized Module For Logging In Transfer Log

Posted by David Hodgkinson <da...@hodgkinson.org>.
Saurabh Goyal <Sa...@citysearch.com> writes:

> Hi,
> 
> I am new to apche and mod_perl. I am trying to write apache module to write
> some additional parameters to transfer log (access.log). Is anybody have an
> idea, how can we write additional stuff to access.log including the
> defaults. Any help appreciated.

Like what?

The custom log format is very flexible...

-- 
Dave Hodgkinson,                             http://www.hodgkinson.org
Editor-in-chief, The Highway Star           http://www.deep-purple.com
      Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -----------------------------------------------------------------