8 Jul 09:52
Re: Replace a file in DailyRollingFileAppender
From: Thorbjørn Ravn Andersen <thunderaxiom <at> gmail.com>
Subject: Re: Replace a file in DailyRollingFileAppender
Newsgroups: gmane.comp.jakarta.log4j.user
Date: 2008-07-08 07:52:07 GMT
Subject: Re: Replace a file in DailyRollingFileAppender
Newsgroups: gmane.comp.jakarta.log4j.user
Date: 2008-07-08 07:52:07 GMT
Aggarwal, Rajat skrev den 08-07-2008 07:44: > 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? Have you tried creating a new configuration for that particular appender and programatically telling log4j to load that configuration? -- Thorbjørn
RSS Feed