Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.
The "FAQ/Logging" page has been changed by ChristopherSchultz: http://wiki.apache.org/tomcat/FAQ/Logging?action=diff&rev1=20&rev2=21 Comment: win32 uses procrun, not jsvc If you really must rotate catalina.out, here are some techniques you can use: - 1. If you are using jsvc 1.0.4 or later to launch Tomcat, you can send SIGUSR1 to jsvc to get it to re-open its log files ([[https://issues.apache.org/jira/browse/DAEMON-95|Jira Ticket]]). You can couple this with 'logrotate' or your favorite log-rotation utility (including good-old 'mv' or 'rename') to re-name catalina.out at intervals and then get jsvc to re-open the original (catalina.out) file and continue writing to it. Note that Tomcat's win32 service is the same thing as jsvc, but you may have difficulty sending SIGUSR1 in a win32 environment. + 1. If you are using jsvc 1.0.4 or later to launch Tomcat, you can send SIGUSR1 to jsvc to get it to re-open its log files ([[https://issues.apache.org/jira/browse/DAEMON-95|Jira Ticket]]). You can couple this with 'logrotate' or your favorite log-rotation utility (including good-old 'mv') to re-name catalina.out at intervals and then get jsvc to re-open the original (catalina.out) file and continue writing to it. 1. Use 'logrotate' with the 'copytruncate' option. This allows you to externally rotate catalina.out without changing anything within Tomcat. 1. Modify bin/catalina.sh/.bat to pipe output from the JVM into a piped-logger such as [[http://www.cronolog.org/|chronolog]] or Apache httpd's [[http://httpd.apache.org/docs/2.2/logs.html#piped|rotatelogs]] (note that the previous reference is for Apache httpd documentation and *is not applicable to Tomcat* -- it merely illustrates the concept). --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org