Re: rotation of catalina.out on restart but no truncation

2012-11-09 Thread Konstantin Kolinko
2012/11/9 Meik Suchlich meik.suchl...@brandad-systems.de:
 Hi,

 we've got an effekt on catalina.out.
 We don't use hot deployment. Instead we stop and start our tomcat for 
 installing new Version.
 The restart causes rotation of catalina.out, but does not truncate.
 How can we solve this?


1. Standard Tomcat scripts neither rotate nor truncate the file. So
what is your question?  Are you asking how to truncate a file on a
Unix system?

2. Do not write anything to the Console (and configure your logging to
log nothing to the Console).
Then there will be no need to bother with an empty catalina.out file.

Best regards,
Konstantin Kolinko

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



Re: rotation of catalina.out on restart but no truncation

2012-11-09 Thread Pid
On 09/11/2012 06:40, Meik Suchlich wrote:
 Hi,
 
 we've got an effekt on catalina.out.
 We don't use hot deployment. Instead we stop and start our tomcat for 
 installing new Version.
 The restart causes rotation of catalina.out, but does not truncate.
 How can we solve this?

You could start by not hijacking other people's threads...


p


-- 

[key:62590808]



signature.asc
Description: OpenPGP digital signature


RE: rotation of catalina.out on restart but no truncation

2012-11-09 Thread Caldarale, Charles R
 From: Meik Suchlich [mailto:meik.suchl...@brandad-systems.de] 
 Subject: AW: rotation of catalina.out on restart but no truncation

 catalina.out is rotated by restart to catalina.-mm-dd.log, but 
 catalina.out 
 itself contains the entries of the rotated log.

 I only want to know, how we can prevent this

To reiterate: whatever script is doing the rotation is *not* part of the 
standard Tomcat distribution.  It likely is part of the Debian mangling of 
Tomcat into Debian-specific packages.  You'll need to find the script and 
adjust it to meet your needs.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



RE: rotation of catalina.out on restart but no truncation

2012-11-09 Thread Tim Watts
On Fri, 2012-11-09 at 08:11 -0600, Caldarale, Charles R wrote:
  From: Meik Suchlich [mailto:meik.suchl...@brandad-systems.de] 
  Subject: AW: rotation of catalina.out on restart but no truncation
 
  catalina.out is rotated by restart to catalina.-mm-dd.log, but 
  catalina.out 
  itself contains the entries of the rotated log.
 
  I only want to know, how we can prevent this
 
 To reiterate: whatever script is doing the rotation is *not* part of
 the standard Tomcat distribution.  It likely is part of the Debian
 mangling of Tomcat into Debian-specific packages.  You'll need to find
 the script and adjust it to meet your needs.
 

Most likely: 'man logrotate'  will help.


  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 



signature.asc
Description: This is a digitally signed message part


Re: rotation of catalina.out on restart but no truncation

2012-11-09 Thread André Warnier

Tim Watts wrote:

On Fri, 2012-11-09 at 08:11 -0600, Caldarale, Charles R wrote:
From: Meik Suchlich [mailto:meik.suchl...@brandad-systems.de] 
Subject: AW: rotation of catalina.out on restart but no truncation
catalina.out is rotated by restart to catalina.-mm-dd.log, but catalina.out 
itself contains the entries of the rotated log.

I only want to know, how we can prevent this

To reiterate: whatever script is doing the rotation is *not* part of
the standard Tomcat distribution.  It likely is part of the Debian
mangling of Tomcat into Debian-specific packages.  You'll need to find
the script and adjust it to meet your needs.



Most likely: 'man logrotate'  will help.



But first, have a look at /etc/init.d/tomcat(version).
And if you find a problem there, you should contact the person who wrote that script, on 
whatever Linux Debian list he lives.  There is nothing the Tomcat developers and other 
people on this list can do about it.



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



Re: rotation of catalina.out on restart but no truncation

2012-11-09 Thread Konstantin Kolinko
2012/11/9 Caldarale, Charles R chuck.caldar...@unisys.com:
 From: Meik Suchlich [mailto:meik.suchl...@brandad-systems.de]
 Subject: AW: rotation of catalina.out on restart but no truncation

 catalina.out is rotated by restart to catalina.-mm-dd.log, but 
 catalina.out
 itself contains the entries of the rotated log.

 I only want to know, how we can prevent this

 To reiterate: whatever script is doing the rotation is *not* part of the 
 standard Tomcat distribution.  It likely is part of the Debian mangling of 
 Tomcat into Debian-specific packages.  You'll need to find the script and 
 adjust it to meet your needs.


catalina.-mm-dd.log is a proper log file, as written by FileHandler.

It is *not* a rotation of catalina.out.

The logging configuration is documented in the User's Guide.

Best regards,
Konstantin Kolinko

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