You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Harald Schumacher <sc...@abc-system.com> on 2004/09/14 11:05:57 UTC
AccessLogValve differs between 4.x and 5?
Hi,
I got an hint to
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html.
for a previous question about logging. There I found
> * %{xxx}i for incoming headers
> * %{xxx}c for a specific cookie
> * %{xxx}r xxx is an attribute in the ServletRequest
> * %{xxx}s xxx is an attribute in the HttpSession
>
This seems to be what I want, but I do not find this section in the
version 4 documentation (and it seems not to work!). Do I have to
upgrade to 5 or has someone managed to get this running?
Thanks and best regards
Harald
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: AccessLogValve differs between 4.x and 5?
Posted by Tim Funk <fu...@joedog.org>.
It means that valve.html is not up to date in the 4.1 docs. [When in doubt -
use the source.]
-Tim
Harald Schumacher wrote:
> Thanks for this link,
>
> but I checked
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html#Access%20Log%20Valve
>
> which does not show any of this additional features.
>
> So does this mean that I only can use it in the API or is there a chance
> to define a pattern in the regular definition file server.xml?
>
> Best regards
>
> Harald
>
>
> Am Di, den 14.09.2004 schrieb Tim Funk um 16:11:
>
>>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html
>>
>>%{host}i <-- Get the host
>>%{cowbell}c <-- Get the first cookie called cowbell
>>%{cowbell}r <-- Return the value of
>> ServletRequest.getAttribute("cowbell").toString();
>>%{more.cowbell}r <-- Return the value of
>> ServletRequest.getAttribute("more.cowbell").toString();
>>%{fever}s <-- Return the value of
>> HttpSession.getAttribute("fever").toString();
>>
>>
>>
>>-Tim
>>
>>Harald Schumacher wrote:
>>
>>
>>>Tim,
>>>
>>>could you give me a hint where to find a documentation? On
>>>jakarta.apache.org the 4.1 documentation does not mention this lines I
>>>copied in my first mail. Using the definition from 5.x did not work for
>>>my (maybe I made some mistakes?) but I would like to see how a correct
>>>example looks like.
>>>
>>>Thank you for your help
>>>
>>>Harald
>>>
>>>Am Di, den 14.09.2004 schrieb Tim Funk um 13:06:
>>>
>>>
>>>>This functionality is also available in 4.1(I forget the number)
>>>>
>>>>-Tim
>>>>
>>>>Harald Schumacher wrote:
>>>>
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>I got an hint to
>>>>>
>>>>>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html.
>>>>>
>>>>>for a previous question about logging. There I found
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> * %{xxx}i for incoming headers
>>>>>> * %{xxx}c for a specific cookie
>>>>>> * %{xxx}r xxx is an attribute in the ServletRequest
>>>>>> * %{xxx}s xxx is an attribute in the HttpSession
>>>>>>
>>>>>
>>>>>This seems to be what I want, but I do not find this section in the
>>>>>version 4 documentation (and it seems not to work!). Do I have to
>>>>>upgrade to 5 or has someone managed to get this running?
>>>>>
>>>>>Thanks and best regards
>>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: AccessLogValve differs between 4.x and 5?
Posted by Harald Schumacher <sc...@abc-system.com>.
Thanks for this link,
but I checked
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html#Access%20Log%20Valve
which does not show any of this additional features.
So does this mean that I only can use it in the API or is there a chance
to define a pattern in the regular definition file server.xml?
Best regards
Harald
Am Di, den 14.09.2004 schrieb Tim Funk um 16:11:
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html
>
> %{host}i <-- Get the host
> %{cowbell}c <-- Get the first cookie called cowbell
> %{cowbell}r <-- Return the value of
> ServletRequest.getAttribute("cowbell").toString();
> %{more.cowbell}r <-- Return the value of
> ServletRequest.getAttribute("more.cowbell").toString();
> %{fever}s <-- Return the value of
> HttpSession.getAttribute("fever").toString();
>
>
>
> -Tim
>
> Harald Schumacher wrote:
>
> > Tim,
> >
> > could you give me a hint where to find a documentation? On
> > jakarta.apache.org the 4.1 documentation does not mention this lines I
> > copied in my first mail. Using the definition from 5.x did not work for
> > my (maybe I made some mistakes?) but I would like to see how a correct
> > example looks like.
> >
> > Thank you for your help
> >
> > Harald
> >
> > Am Di, den 14.09.2004 schrieb Tim Funk um 13:06:
> >
> >>This functionality is also available in 4.1(I forget the number)
> >>
> >>-Tim
> >>
> >>Harald Schumacher wrote:
> >>
> >>
> >>>Hi,
> >>>
> >>>I got an hint to
> >>>
> >>>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html.
> >>>
> >>>for a previous question about logging. There I found
> >>>
> >>>
> >>>
> >>>
> >>>> * %{xxx}i for incoming headers
> >>>> * %{xxx}c for a specific cookie
> >>>> * %{xxx}r xxx is an attribute in the ServletRequest
> >>>> * %{xxx}s xxx is an attribute in the HttpSession
> >>>>
> >>>
> >>>This seems to be what I want, but I do not find this section in the
> >>>version 4 documentation (and it seems not to work!). Do I have to
> >>>upgrade to 5 or has someone managed to get this running?
> >>>
> >>>Thanks and best regards
> >>>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: AccessLogValve differs between 4.x and 5?
Posted by Tim Funk <fu...@joedog.org>.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html
%{host}i <-- Get the host
%{cowbell}c <-- Get the first cookie called cowbell
%{cowbell}r <-- Return the value of
ServletRequest.getAttribute("cowbell").toString();
%{more.cowbell}r <-- Return the value of
ServletRequest.getAttribute("more.cowbell").toString();
%{fever}s <-- Return the value of
HttpSession.getAttribute("fever").toString();
-Tim
Harald Schumacher wrote:
> Tim,
>
> could you give me a hint where to find a documentation? On
> jakarta.apache.org the 4.1 documentation does not mention this lines I
> copied in my first mail. Using the definition from 5.x did not work for
> my (maybe I made some mistakes?) but I would like to see how a correct
> example looks like.
>
> Thank you for your help
>
> Harald
>
> Am Di, den 14.09.2004 schrieb Tim Funk um 13:06:
>
>>This functionality is also available in 4.1(I forget the number)
>>
>>-Tim
>>
>>Harald Schumacher wrote:
>>
>>
>>>Hi,
>>>
>>>I got an hint to
>>>
>>>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html.
>>>
>>>for a previous question about logging. There I found
>>>
>>>
>>>
>>>
>>>> * %{xxx}i for incoming headers
>>>> * %{xxx}c for a specific cookie
>>>> * %{xxx}r xxx is an attribute in the ServletRequest
>>>> * %{xxx}s xxx is an attribute in the HttpSession
>>>>
>>>
>>>This seems to be what I want, but I do not find this section in the
>>>version 4 documentation (and it seems not to work!). Do I have to
>>>upgrade to 5 or has someone managed to get this running?
>>>
>>>Thanks and best regards
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: AccessLogValve differs between 4.x and 5?
Posted by Harald Schumacher <sc...@abc-system.com>.
Tim,
could you give me a hint where to find a documentation? On
jakarta.apache.org the 4.1 documentation does not mention this lines I
copied in my first mail. Using the definition from 5.x did not work for
my (maybe I made some mistakes?) but I would like to see how a correct
example looks like.
Thank you for your help
Harald
Am Di, den 14.09.2004 schrieb Tim Funk um 13:06:
> This functionality is also available in 4.1(I forget the number)
>
> -Tim
>
> Harald Schumacher wrote:
>
> > Hi,
> >
> > I got an hint to
> >
> > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html.
> >
> > for a previous question about logging. There I found
> >
> >
> >
> >> * %{xxx}i for incoming headers
> >> * %{xxx}c for a specific cookie
> >> * %{xxx}r xxx is an attribute in the ServletRequest
> >> * %{xxx}s xxx is an attribute in the HttpSession
> >>
> >
> > This seems to be what I want, but I do not find this section in the
> > version 4 documentation (and it seems not to work!). Do I have to
> > upgrade to 5 or has someone managed to get this running?
> >
> > Thanks and best regards
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: AccessLogValve differs between 4.x and 5?
Posted by Tim Funk <fu...@joedog.org>.
This functionality is also available in 4.1(I forget the number)
-Tim
Harald Schumacher wrote:
> Hi,
>
> I got an hint to
>
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html.
>
> for a previous question about logging. There I found
>
>
>
>> * %{xxx}i for incoming headers
>> * %{xxx}c for a specific cookie
>> * %{xxx}r xxx is an attribute in the ServletRequest
>> * %{xxx}s xxx is an attribute in the HttpSession
>>
>
> This seems to be what I want, but I do not find this section in the
> version 4 documentation (and it seems not to work!). Do I have to
> upgrade to 5 or has someone managed to get this running?
>
> Thanks and best regards
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org