When you run Tomcat 4.0 stand alone, it generates webserver-style access
logs by default, in the "logs" directory. The default filenames will be
of the form "localhost_access_log.YYYY-MM-DD.txt", and will switch over
automatically each midnight without having to be restarted.
Craig McClanahan
On Wed, 19 Sep 2001, Paul D. Bain wrote:
> Date: Wed, 19 Sep 2001 11:03:38 -0400
> From: Paul D. Bain <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: A newbie question about Tomcat and Webalizer
>
> At Wednesday 9/19/01 07:45 AM , you wrote:
> >At the moment I am running an tomcat in combination with Apache. However
> > there is no reason to use Apache, except that I use webalizer to
> >generate web site stats. My question is: is it possible to configure
> >Tomcat (3.2 and 4.0) in such a way that I can continue to use webalizer?
>
> As to 4.0, I think that the answer is, "Probably." You would have to edit
> the file server.xml (the primary Tomcat config file) to add a Logger
> component (if not already in your server.xml file) for each container for
> which you wanted logging. Tomcat 4.0 includes an optional Valve
> implementation (which would involve more changes server.xml) that can
> create access logs in the same standard format created by web servers, or
> in any custom format desired. In order to have still more information
> written to the log, you could try adjusting the value of the attribute
> "debug" in the relevant component tag. The higher the debug level, the more
> information would be written to the log. The default debugging level is
> zero, and it can be set as high as nine.
>
> The documentation for 4.0 has a great deal on logging, and that's the
> source of my knowledge of this topic.
>
> -- Paul Bain
>