You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Juan Manuel Soler Rincón <ju...@uniandes.edu.co> on 2005/03/23 19:29:12 UTC

configure loggers

Hi

I`ve been searching about logging level of the server(tomcat), and i can`t find
a way to logging the request in the same way of apache:

200.118.108.230 - - [16/Jan/2005:20:42:53 -0500] "GET /Archivos/Trabajo.doc.
HTTP/1.1" 200 81920

I need to log the option(GET, POST, HEAD), the file requested, and the response
code from the server, the only one thing that i found was the verbosity level of
the logger, but any of the levels show the information that i need.

thx


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: configure loggers

Posted by Jason Bainbridge <jb...@gmail.com>.
On Wed, 23 Mar 2005 13:29:12 -0500, Juan Manuel Soler Rincón
<ju...@uniandes.edu.co> wrote:
> Hi
> 
> I`ve been searching about logging level of the server(tomcat), and i can`t find
> a way to logging the request in the same way of apache:
> 
> 200.118.108.230 - - [16/Jan/2005:20:42:53 -0500] "GET /Archivos/Trabajo.doc.
> HTTP/1.1" 200 81920
> 
> I need to log the option(GET, POST, HEAD), the file requested, and the response
> code from the server, the only one thing that i found was the verbosity level of
> the logger, but any of the levels show the information that i need.

 Uncomment:

Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="localhost_access_log." suffix=".txt"
                 pattern="common" resolveHosts="false"/>

In your server.xml.

Regards,
-- 
Jason Bainbridge
http://kde.org - webmaster@kde.org
Personal Site - http://jasonbainbridge.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org