Hi Thomas, First thanks for your reply. This is the relevant section in the $CATALINA_BASE/conf/log4j.properties file:
log4j.debug=true log4j.rootLogger=INFO, CATALINA, CONSOLE . . . log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.encoding=UTF-8 log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.DatePattern = '.'yyyy-MM-dd log4j.appender.CONSOLE.layout.conversionPattern=%d{ISO8601} - %X{login} - %X{device} - %X{uri} - %X{log} - %X{sessionId} - %m%n and this is the log4j.properties file (relevant console section) for the application: <appender name="LOGOUT.CONSOLE" class="org.apache.log4j.DailyRollingFileAppender"> <param name="File" value="$CATALINA_BASE/logs/application-console.log"/> <param name="Append" value="true"/> <param name="datePattern" value="'.'yyyy-MM-dd"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{HH:mm:ss} [%c] %m%n"/> </layout> </appender> but I can still see the application console output going into 'catalina.out' instead in the 'application-console.log' file which never gets created. And this is what I have in the application context: <Context .... swallowOutput="true"> .... </Context> Thanks, Igor On Mon, Apr 18, 2011 at 3:56 PM, Thomas Freitag <tho...@freit.ag> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Igor, > > On 04/18/2011 07:38 AM, Igor Cicimov wrote: > > I have a question about rotating catalina.out file. Is there any way to > > accomplish this through Tomcat without using external tool like logrotate > > for example as shown in the following thread: > > > > http://marc.info/?t=105544472600001&r=1&w=2 > > No, catalina.out is is just redirected STDOUT and STDERR, you need an > external tool for rotating it. > > > I understand that this might be a matter of bad coding practice but since > > I'm not the developer of the applications running on the server I can't > do > > much about it. The applications are configured to use log4j but the > > developers say they can't do much to redirect the applications console > > output to the log files. > > If log4j is really used check the configuration for a ConsoleAppender > (and disable it). If no logging framework is used, "swallowOutput" in > your context configuration (see > http://tomcat.apache.org/tomcat-6.0-doc/config/context.html) might help > to keep your catalina.out clean. > > Regards, > - -- > Thomas Freitag > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAk2r0o0ACgkQGE5pHr3PKuUotwCfadypG387UpnSkEwkSeudlPsi > PmgAn0dWtrgaPIn5Ky8znLCzeMeWJ+OW > =HbCM > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >