|
> the typical way
to do this is to add something to $r->notes and use the %{Foobar}n
Woohoo .. rock on .. this worked. For posterity, here is what worked: 1) Add a note in the modperl code with the variable to be logged sub append_to_log { my ($r, $plog) = @_; $r->notes->set('SYSINFO' => "&sysinfo=" . uri_escape(join("&", @{$plog}))); } 2) Modify the apache configuration so that you are logging the new variable. I also has to replace "%r" with "%m %U%q" since I needed to append to the URI) LogFormat "%h %l %u %t \"%m %U%q%{SYSINFO}n %H\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined > opening up $r->request_line() is probably acceptable. Regarding this issue (and the follow on responses to it), my vote would go to making it writable again. Having old code work is huge for grunts like me. The approach above seems to have solved the major problem (logging the data) but is introducing side effects (for example, if I have not set a note for SYSINFO or if apache is serving a static file like index.html, it is getting logged as index.html- -- notice the dash at the end). Naive question: If making request_line writable again is accepted, when should it make it to a stable release ? Thanks so much for your help guys. Really appreciate it. - Alden. Geoffrey Young wrote:
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Modifying the Apache Log Entry Alden DoRosario
- Re: Modifying the Apache Log Entry Geoffrey Young
- Re: Modifying the Apache Log Entry Fred Moyer
- Re: Modifying the Apache Log Entry Geoffrey Young
- Re: Modifying the Apache Log Entry Alden DoRosario
- Re: Modifying the Apache Log Entry Fred Moyer
- Re: Modifying the Apache Log Entry Geoffrey Young
- Re: Modifying the Apache Log Entry Fred Moyer
- Re: Modifying the Apache Log Entry Fred Moyer
- Re: Modifying the Apache Log Entry Geoffrey Young
