tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Rainer" <>
Subject AW: Logger / Context
Date Tue, 01 Jun 2010 08:08:21 GMT

thank you for your reply but I do not manage to get my desired result.

We have several axis*** servlets installed in /webapps of Tomcat 6.0*.
(Let's call it axis1 to axis100 for this explanation.)

In Tomcat 5.0* we had different contexts with loggers defined in server.xml,
thus the stdout was redirected to the files configured in this loggers.
This configuration is not proposed and also not supported in Tomcat 6.

==> We have tried a lot of different things but I never managed to redirect my
stdout from "localhost.Date.log" to a "localhost_axis1.Date.log" file.

Does anyone has a hint for me, where to configure that or how?

Thanks in advance


-----Urspr√ľngliche Nachricht-----
Von: Pid * []
Gesendet: Montag, 31. Mai 2010 16:13
An: Tomcat Users List
Betreff: Re: Logger / Context

On 31 May 2010, at 12:29, Stefan Rainer <> wrote:

> Hello,
> we've been using context + logger for redirecting "stdout-logs"
> from different servlets to different folders in tomcat 5.0.*:
> <Context docBase="axis" path="/axis" reloadable="true"
> swallowOutput="true">
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="logs/axis/" prefix="StdOut_axis_" suffix=".log"
> timestamp="true"/>
> </Context>
> After upgrading to tomcat 6.*, this log redirects does not work
> anymore.
> Has anyone a hint or a link to some information how this could be
> done in
> Tomcat 6?

Configuration details have changed since 5.0, please read the docs for
Context, Host (and DataSource if applicable).

The Logger element is no longer used.

The AccessLogValve is now used for request logging. You must configure
your own logging for in-app logs, e.g. Log4j.


> thanks, stefan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message