tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Rainer" <s.rai...@teamaxess.com>
Subject AW: AW: Logger / Context
Date Tue, 01 Jun 2010 10:38:50 GMT
Hello,

thank you, i managed to get exactly what I wanted with the gloabal
logging.properties!

BUT ANOTHER QUESTION:
I would like to addionally compress (zip) old logs and delete them after
(e.g.) 30 days. Is there any existing automatism in tonmcat / java logging?
(Using Tomcat 6 on Windows Server machines)

Thank you very much for your efforts!

Regards, STefan

-----Urspr√ľngliche Nachricht-----
Von: Felix Schumacher [mailto:felix.schumacher@internetallee.de]
Gesendet: Dienstag, 1. Juni 2010 10:16
An: Stefan Rainer
Betreff: Re: AW: Logger / Context


Am Dienstag, den 01.06.2010, 10:08 +0200 schrieb Stefan Rainer:
> Hello,
>
> 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.
swallowOutput should work to redirect stdout from your servlets into the
standard tomcat logger. But that has changed. Read
http://tomcat.apache.org/tomcat-6.0-doc/logging.html for configuring it.

There are basically two ways to accomplish it.
 1. create or modify a logging.properties inside your WEB-INF/classes
dir
 2. modify the global logging.properties inside $CATALINA_BASE/conf

Bye
 Felix
>
> ==> 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
>
> STefan
>
>
>
> -----Urspr√ľngliche Nachricht-----
> Von: Pid * [mailto:pid@pidster.com]
> Gesendet: Montag, 31. Mai 2010 16:13
> An: Tomcat Users List
> Betreff: Re: Logger / Context
>
>
> On 31 May 2010, at 12:29, Stefan Rainer <s.rainer@teamaxess.com> 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.
>
>
> p
>
> > thanks, stefan
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>




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


Mime
View raw message