Hi, thanks for the reply Geoff.  I'm actually trying to access the %O
bytes sent that logio.c places amongst the other variables within the
logging module.  Thats something that I can't find elsewhere.  Sorry
about the %h %i example, i thought %O would over complicate the
question :)

Thanks,
Brad.

On Mon, 2007-06-18 at 12:43 -0400, Geoffrey Young wrote:
> 
> Brad wrote:
> > Is there any way I can read variables from apache's log system back into
> > a PerlLogHandler?  %h %l etc
> 
> you might as well forget about %l - nobody runs with identd.  as for %h
> you can use $r->c->get_remote_host()
> 
> http://perl.apache.org/docs/2.0/api/Apache2/Connection.html#C_get_remote_host_
> 
> mod_log_config merely uses the apache api to spit those bits out to the
> log file.  so browse the Apache2::RequestRec, ::ServerRec, ::Conection,
> etc and you'll have whatever info you need.
> 
>   http://perl.apache.org/docs/2.0/api/
> 
> HTH
> 
> --Geoff

Reply via email to