----- Original Message -----
> Chris,
> 
> Thank you so much for the suggestions.
> 
> It's a tomcat on windows so some options of logs or files rotation
> available on Li/Unix won't work. I tried to write script to rotate
> but failed b/c as you said, I can't move log files while tomcat is
> running. Neither Log4j.

Are you running Tomcat as a Windows Service?  If so, you'll be using a wrapper 
script.  The wrapper script should allow you to rotate the stdout / stderr log 
file.  What wrapper script are you using?

Dan



> 
> I also tried swallowOutput (mine is Tomcat7), but it doesn't work for
> me. If
> 
> I have to deal with it on production. That's the problem. Please
> don't ask me why, just b/c that's the business I have.
> 
> So maybe another question is how to do logging-pipe and rotate (as
> you said) for JSSE?
> 
> Thanks.
> 
> 
> -----Original Message-----
> From: users-return-234255-HONG.D.LE=saic....@tomcat.apache.org
> [mailto:users-return-234255-HONG.D.LE=saic....@tomcat.apache.org] On
> Behalf Of Christopher Schultz
> Sent: Tuesday, May 15, 2012 11:02 AM
> To: Tomcat Users List
> Subject: Re: Tomcat Stdout Rotate
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hong,
> 
> On 5/15/12 10:04 AM, Le, Hong D. wrote:
> > I have tried so many ways to rotate tomcat stdout log file daily or
> > by
> > size but unable to achieve the goal.
> 
> What did you try?
> 
> > My log file grows very quick because I have to set ssl and
> > handshake
> > to debug mode.
> 
> This isn't in production, is it? You certainly don't want anything in
> debug mode in production - at least not for long.
> 
> > I appreciate if you can help me how to do.
> 
> Obviously, the best thing is not to dump a lot of stuff to stdout.
> Recent versions of Tomcat (you didn't say what you've got) have a
> "swallowOutput" option on specific webapps, but that is unlikely to
> affect JSSE debug logging.
> 
> Since Tomcat's logs/catalina.out is done using shell redirection, the
> stream moves with the file, so you can't just re-name the file:
> you'd have to restart Tomcat after moving the file which isn't
> really a good option.
> 
> You could try to use a logging-pipe that knows how to rotate files
> and hack catalina.sh to use that instead of "[...] >
> logs/catalina.out"
> that is in there currently.
> 
> Good luck,
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk+yb9IACgkQ9CaO5/Lv0PBUEgCgrc9eirH0c+bRCzkkpkkgsyyb
> W9sAmwfRhP2C4OihZa27P3UkSnuCAhsy
> =g4yl
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> 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

Reply via email to