dcsimg
Facing Synchronization issues while logging
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, April 18, 2006 12:50 AM

Hi All I am using log4j for logging. I have a set of 5-6 classes putting logs in their respective log files, not in the same file. Out of those classes, I have two classes A and B putting logs in the same log file. Now for both these classes I have seperate entries in the configuration file regarding the appender(using DailyRollingFileAppender), layout, date format etc.....but the same log file name..... It works fine first...........but as the date changes, it is unable to change the file name with previous date(as the format mentioned in the config file....) and have the same file name for current date. What it does is, it just overrites the old file content and start logging in the same file for current day's logs......and that too    More>>


Hi All
I am using log4j for logging.
I have a set of 5-6 classes putting logs in their respective log files, not in the same file. Out of those classes, I have two classes A and B putting logs in the same log file. Now for both these classes I have seperate entries in the configuration file regarding the appender(using DailyRollingFileAppender), layout, date format etc.....but the same log file name.....
It works fine first...........but as the date changes, it is unable to change the file name with previous date(as the format mentioned in the config file....) and have the same file name for current date. What it does is, it just overrites the old file content and start logging in the same file for current day's logs......and that too the logs for two classes are coming in wrong way........First, all the logs of class A are getting printed and then logs for class B are getting printed.......
Could someone please help me that what could be the problem?

Thanks & Regards
Inder Jeet Singh

   <<Less
About | Sitemap | Contact