8 Jul 07:41
Replace a file in DailyRollingFileAppender
From: Aggarwal, Rajat <rajat.aggarwal <at> razorsight.com>
Subject: Replace a file in DailyRollingFileAppender
Newsgroups: gmane.comp.jakarta.log4j.user
Date: 2008-07-08 05:44:01 GMT
Subject: Replace a file in DailyRollingFileAppender
Newsgroups: gmane.comp.jakarta.log4j.user
Date: 2008-07-08 05:44:01 GMT
Hi All, Is there any way we can replace a file attached to a particular appender using java code? I am using DailyRollingFileAppender for my purpose and want to log to separate files depending upon certain configurations made in the database. Can we dynamically change the files an appender is writing to? If so, how? Please help. An early response shall be highly appreciated. Thanks and Regards, Rajat Aggarwal
RSS Feed