AW: AW: Logger / Context

2010-06-01 Thread Stefan Rainer
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.schumac...@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:p...@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.rai...@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-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 

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



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





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



Re: AW: AW: Logger / Context

2010-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stefan,

On 6/1/2010 6:38 AM, Stefan Rainer wrote:
 thank you, i managed to get exactly what I wanted with the [global]
 logging.properties!

Great!

 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)

Tomcat does not have any provision to do that. Most *NIX systems can run
a package called logrotate that does stuff like this. Try Googling for
logrotate windows and see what you get.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwFEeMACgkQ9CaO5/Lv0PC4OgCeNbXRZD573TWvCtCSdGrfrGro
sHMAoLvo/7tyoQjd/J0c1ItN5+fE/BGN
=Uswz
-END PGP SIGNATURE-

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