You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shahar Cohen <Sh...@888holdings.com> on 2008/07/19 21:09:16 UTC
logging!!
Hi,
I have installed tomcat5.5 with JDK 1.5
I want to log inside my access log the header content-length though I
cant find anywhere on the web
Or tomcat documentation on how to do it. is it possible.
Please advice
Thanks in advanced
RE: logging!!
Posted by Shahar Cohen <Sh...@888holdings.com>.
Hi,
I have found it the argument for logging the content length header in
the access log is %B.
Thanks
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Monday, July 21, 2008 10:29 PM
To: Tomcat Users List
Subject: RE: logging!!
> From: Shahar Cohen [mailto:Shahar.Cohen@888holdings.com]
> Subject: RE: logging!!
>
> Can you please tell me which argument supplies this information?
Use an appropriate pattern:
"There is also support to write information from the cookie, incoming
header, the Session or something else in the ServletRequest. It is
modeled after the apache syntax:
* %{xxx}i for incoming headers
* %{xxx}o for outgoing response 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"
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: logging!!
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Shahar Cohen [mailto:Shahar.Cohen@888holdings.com]
> Subject: RE: logging!!
>
> Can you please tell me which argument supplies this information?
Use an appropriate pattern:
"There is also support to write information from the cookie, incoming header, the Session or something else in the ServletRequest. It is modeled after the apache syntax:
* %{xxx}i for incoming headers
* %{xxx}o for outgoing response 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"
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: logging!!
Posted by Shahar Cohen <Sh...@888holdings.com>.
Hi,
I indeed already look at this page but unfortunately I haven't found the
'header content-length' argument there.
Can you please tell me which argument supplies this information?
Thanks in advanced.
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Saturday, July 19, 2008 10:16 PM
To: Tomcat Users List
Subject: RE: logging!!
> From: Shahar Cohen [mailto:Shahar.Cohen@888holdings.com]
> Subject: logging!!
>
> I want to log inside my access log the header content-length
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access%20Log%2
0Valve
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: logging!!
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Shahar Cohen [mailto:Shahar.Cohen@888holdings.com]
> Subject: logging!!
>
> I want to log inside my access log the header content-length
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access%20Log%20Valve
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org