[ https://issues.apache.org/jira/browse/LOG4J2-1964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116056#comment-16116056 ]
Leliel Trethowen commented on LOG4J2-1964: ------------------------------------------ RollingRandomAccessFileAppender is also affected > Dynamic reconfiguration does not work for filePattern of RollingFile > -------------------------------------------------------------------- > > Key: LOG4J2-1964 > URL: https://issues.apache.org/jira/browse/LOG4J2-1964 > Project: Log4j 2 > Issue Type: Bug > Components: Core > Affects Versions: 2.8.2 > Environment: JDK 1.7.80 > Reporter: Xiaoshuang LU > Fix For: 2.9 > > > The initial log4j2.xml file was > {code} > <?xml version="1.0" encoding="UTF-8"?> > <Configuration status="INFO" monitorInterval="60"> > <Properties> > <Property name="LOG_HOME">./logs</Property> > </Properties> > <Appenders> > <RollingFile > name="RollingFileAppender" > fileName="${LOG_HOME}/log.log" > filePattern="${LOG_HOME}/log.log.%d{yyyy-MM-dd}.%i"> > <ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY"/> > <PatternLayout pattern="%d{DEFAULT} %p %t %c %L: %m%n"/> > <Policies> > <OnStartupTriggeringPolicy/> > <!--<TimeBasedTriggeringPolicy/>--> > <SizeBasedTriggeringPolicy size="256MB"/> > </Policies> > <DefaultRolloverStrategy max="8"/> > </RollingFile> > </Appenders> > <Loggers> > <Root level="INFO"> > <AppenderRef ref="RollingFileAppender"/> > </Root> > </Loggers> > </Configuration> > {code} > And then I changed filePattern to > {code} > filePattern="${LOG_HOME}/log.log.%i" > {code} > Log file names still contain date. -- This message was sent by Atlassian JIRA (v6.4.14#64029)