Could construct a new appender and swap it for the old one? On Wed, Aug 21, 2019 at 8:39 AM Ralph Goers <ralph.go...@dslextreme.com> wrote:
> No. The file name is immutable. > > Ralph > > > On Aug 21, 2019, at 6:22 AM, Fred Eisele <fredrick.eis...@gmail.com> > wrote: > > > > Given a RollingFileAppender is it possible to > dyanamically/programmatically > > change its fileName? > > > > <RollingFile name="X_PLUGIN_FILE" > > fileName="x.log}" > > filePattern="x_%i.log}" > > ignoreExceptions="false"> > > <PatternLayout pattern="#linux %file:%method:%line - %msg%n" > /> > > <OnDemandTriggeringPolicy /> > > </RollingFile> > > > > I need to be able to change the log file from my running application > plugin. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > >