Brad wrote: > 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 :)
mod_perl generally uses $r->bytes_sent() for this kind of thing http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_bytes_sent_ but note the caveat in the docs - it's unlikely bytes_sent() will match mod_logio's results. it's a shame mod_logio doesn't set its result in subprocess_env, which would make accessing it's results a simple matter. the cool thing, though, is that mod_logio itself has an api, registering optional functions that you can call. is, if you _really_ wanted mod_logio's results you could use some simple xs to create a wrapper and get at them :) HTH --Geoff