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]

Reply via email to