DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42562>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42562 Summary: log4j writing in old files Product: Log4j Version: 1.2beta Platform: Sun OS/Version: AIX Status: NEW Severity: critical Priority: P1 Component: Appender AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Hello, we have implemented on logging facility in our web services. problem: there are 2 web services (WS) A and B. then when users start hitting the WS loggers start writing in a log file. the java code creates an obj of logger using getlogger(). assuming if A WS has created an object of the logger then it will be reused by B WS or any other call to any WS. The log files are created daily using DailyRollingFileAppender. after running for a couple of days the logger starts writing into an old log file created with date stamp. example if for example app started on 1st june then a log file was created xyz.log then next day the log files now exists are xyz.log and xyz.log.YYYY-MM-DD and at times the logger obj start writing into xyz.log.YYYY-MM-DD file instead of xyz.log. we are using IBM jdk 1.4 and the WS is running using web sphere 6.0 on AIX server using log4j 1.2.6 kindly help. below is the log4j property file being used. ######### Configuring log4j at meta level ############## ######################################################## # To enable logging,set the following to true log4j.debug=true # To disable logging below or equal to this priority for all categories in a hierarchy #log4j.disable=DEBUG # To diable the above statement set the following to true log4j.disableOverride=false ######## Configuring Categories(loggers) ############# ###################################################### ###### Root Category ###### log4j.rootCategory=DEBUG log4j.category.dc=DEBUG,dest1 #### Configuration of Appenders for dest1 ##### log4j.appender.dest1=org.apache.log4j.DailyRollingFileAppender # File name where messages will be logged log4j.appender.dest1.File=/var/tmp/DCAPIDEV/logs/hcl_dc_test.log #log4j.appender.dest1.MaxFileSize=5MB #Keep one backup file. #log4j.appender.dest1.MaxBackupIndex=1 log4j.appender.dest1.ImmediateFlush=true #To make a new file at each program run,set it to false. log4j.appender.dest1.Append=true log4j.appender.dest1.DatePattern='.'yyyy-MM-dd ##### Configuration of Appenders Layout for dest1 log4j.appender.dest1.layout=org.apache.log4j.PatternLayout log4j.appender.dest1.layout.ConversionPattern=[%p] %C{1}.%M() : %m : %d{dd MMM yyyy HH:mm:ss} %n -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
