Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
From: Mark Doyle <[EMAIL PROTECTED]> > How about adding a custom header with the format you want > and then logging that with a custom log format? I think I've found an acceptable method. I've got a log handler like this: my $req = $r->the_request; if ($r->uri =~ /$something_interesting

Re: Selectively writing to the access log

2001-10-19 Thread Mark Doyle
How about adding a custom header with the format you want and then logging that with a custom log format? Cheers, Mark On Friday, October 19, 2001, at 04:09 PM, Rodney Broom wrote: > My ultimate goal is this: > I have a silly redirector script that acts as a logging hook for folks > clicking t

Re: Selectively writing to the access log

2001-10-19 Thread Rob Nagler
> Usage: Apache::the_request(r) This means the "sub" Apache::the_request takes a single parameter, i.e. you can't modify the_request. You can modify the method and uri. You can't modify the protocol (HTTP/1.0). If you change method or uri, it doesn't change "the_request". You can change you

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
- Original Message - From: Mark Doyle <[EMAIL PROTECTED]> > I missed your original post, but maybe this will help. > > What about creating a new log using CustomLog and tying it to an > environment variable and only setting this in the requests you want > to log? I do this to log subsc

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
From: Geoffrey Young <[EMAIL PROTECTED]> > are you on an old version of mod_perl? from Changes: > $r->the_request can now be modified Good catch, yes I was using 1.19. I've moved a machine with 1.26 and r->the_request($string) no longer fails. However, with 1.26 none of changes I'm making to

RE: Selectively writing to the access log

2001-10-19 Thread Geoffrey Young
> -Original Message- > From: Rodney Broom [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 19, 2001 3:14 PM > To: [EMAIL PROTECTED] > Subject: Re: Selectively writing to the access log > > > From: Rob Nagler <[EMAIL PROTECTED]> > > > I do

Re: Selectively writing to the access log

2001-10-19 Thread Rodney Broom
From: Rob Nagler <[EMAIL PROTECTED]> > I don't think you can change the access log format, but you can > modify the values. For example, you can set $c->user and $c->remote_ip. Thanks Rob, this is helpful and it works. The value I'm wanting to change is in r->the_request, but passing a value

Re: Selectively writing to the access log

2001-10-19 Thread Rob Nagler
> I only see methods for writing to the error log. I don't think you can change the access log format, but you can modify the values. For example, you can set $c->user and $c->remote_ip. Rob