In windows - your screwed.

In unix: (YMMV)
cp -f catalina.out catalina.out-old
cat /dev/null > catalina.out

In a nutshell - wacky every developer upside the head which uses System.out, System.err. Then make them use a logging package such as log4j, commons-logging, ... And catalina.out becomes "unused"

-Tim


Eric J. Pinnell wrote:
Hi,

Our catalina.out gets rather large.  We would like to keep the data.  Does
anybody have a good solution for rotating it w/o restarting the
application?  Or can that even be done?

I was thinking of renaming the file and then touching catalina.out to
create a new file but I have some concerns that tomcat won't write to the
file once it sees it move.

Anybody have any thoughts?

-e


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to