What's going on with C:\LB\Tomcat versus C:\Tomcat ? Do you have two Tomcat installations?
Brett On 3/8/12, Meir Yanovich <[email protected]> wrote: > i have in my tomcat web application log4j that is configured like this : > > > 1. <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > debug="true"> > 2. <appender name="FILE" class="org.apache.log4j.RollingFileAppender" > > > 3. <param name="Threshold" value="DEBUG"/> > 4. <param name="maxFileSize" value="100KB"/> > 5. <param name="maxBackupIndex" value="15"/> > 6. <param name="File" value="${catalina.home}/logs/myapp_gw.log" > /> > 7. <param name="Append" value="true"/> > 8. <layout class="org.apache.log4j.PatternLayout"> > 9. <param name="ConversionPattern" value= > "%d{ISO8601} %t %-5p [%c{1}] %m%n "/> > 10. </layout> > 11. </appender> > 12. ... > 13. .... > 14. ... > > configured 100kb just to get quick > test<http://www.javaranch.com/unit-testing.jsp>results , any way it > seams like log4j roll the log only once and each time > he detects that he need to make roll it just changes the previous file name > and keep outputting to the main log file , i set log4j debug mode and the > output it gives me looks like this : > > log4j: rolling over count=820961 > log4j: maxBackupIndex=15 > log4j: Renaming file C:\Tomcat\logs\myapp_gw.log.8 to > C:\LB\Tomcat\logs\myapp_gw.log.9 > log4j: Renaming file C:\Tomcat\logs\myapp_gw.log to > C:\LB\Tomcat\logs\myapp_gw.log.1 > log4j: setFile called: C:\Tomcat/logs/myapp_gw.log, true > log4j: setFile ended > > > as you can see it renaming me the myapp_gw.log.8 to myapp_gw.log.9 but > doesn't keep the myapp_gw.log.8 , > i need it to keep as i configured history of 15 files . what i need wrong > here ? > thanks > -- Sent from my mobile device --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
