Do you have 2 JVMs (not just 2 classloaders in one JVM) writing to the same log file? I once had a problem where messages were not being written to the end of the file but rather somewhere in the middle. I saw this when running tests against a container from outside the container. I think the 2 processes had different ideas where the end of the file was.
-----Original Message----- From: Nehal Shah [mailto:[EMAIL PROTECTED] Sent: Sunday, March 20, 2005 11:03 PM To: 'Log4J Users List' Subject: Log File keeps truncating Hi, I have configured my web-app for log4j. Though, log statements are going to the log file, I find only some of them going to the log file and not all. Also, the log file keeps truncating after some log statements randomly. I am not able to figure out the reason behind it. I have set my Appender to 'DailyRollingFileAppender'. In the properties file I have assigened the value false to 'Append' property of log4j. Here is my property file : log4j.rootLogger=DEBUG, A1 log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender log4j.appender.A1.File=/usr/local/Events_Horizon/EHLog/test.log log4j.appender.A1.ImmediateFlush=true log4j.appender.A1.DatePattern='.'yyyy-MM-dd log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} %-5p: %m%n log4j.appender.A1.Append=false Please help as early as possible. Nehal ---------------------------------------------------------- Netcore Solutions Pvt. Ltd. Website: http://www.netcore.co.in Spamtraps: http://cleanmail.netcore.co.in/directory.html ---------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
