You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jochen Wiedmann <jo...@ispsoft.de> on 2001/04/18 16:14:15 UTC

Accesslog in the style of Apache

Hi,

I would like to have some access logfile in the style of
Apache's "AccessLog".

More precise, I want a file where any request is logged
in the following style:

  192.168.5.152 - - [17/Apr/2001:08:29:25 +0200] "GET /tm/client/index.html
HTTP/1.1" 200 1072
  192.168.5.152 - - [17/Apr/2001:08:29:25 +0200] "GET /tm/client/format.css
HTTP/1.1" 200 536
  192.168.5.171 - - [17/Apr/2001:08:43:53 +0200] "GET /tm/client HTTP/1.1"
302 0

However, I don't know how to do this with TomCat. Any hints?

Thanks,

Jochen

Re: Accesslog in the style of Apache

Posted by Sam Newman <sa...@stamplets.com>.
I think if you change the debug setting for the app in question and redirect
output of tomcat you should get this displayed. Try setting the debug level
to 9 and redirect the stdout and stderr of the tomcat process and have a
look. It might also go to a file in the tomcat/logs directory

sam
----- Original Message -----
From: "Jochen Wiedmann" <jo...@ispsoft.de>
To: <to...@jakarta.apache.org>
Sent: Wednesday, April 18, 2001 3:14 PM
Subject: Accesslog in the style of Apache


>
> Hi,
>
> I would like to have some access logfile in the style of
> Apache's "AccessLog".
>
> More precise, I want a file where any request is logged
> in the following style:
>
>   192.168.5.152 - - [17/Apr/2001:08:29:25 +0200] "GET
/tm/client/index.html
> HTTP/1.1" 200 1072
>   192.168.5.152 - - [17/Apr/2001:08:29:25 +0200] "GET
/tm/client/format.css
> HTTP/1.1" 200 536
>   192.168.5.171 - - [17/Apr/2001:08:43:53 +0200] "GET /tm/client HTTP/1.1"
> 302 0
>
> However, I don't know how to do this with TomCat. Any hints?
>
> Thanks,
>
> Jochen
>