Jason Hong created LOG4J2-1201:
----------------------------------
Summary: Changes to the "filePattern" property of <RollingFile> is
not picked up during refresh
Key: LOG4J2-1201
URL: https://issues.apache.org/jira/browse/LOG4J2-1201
Project: Log4j 2
Issue Type: Bug
Affects Versions: 2.1
Environment: Linux
Reporter: Jason Hong
Priority: Minor
I'm not sure if this is intentional but it seems like the "filePattern"
property of <RollingFile> is not picked up during the refresh interval unless
"fileName" is modified.
To reproduce:
1. In log4j2.xml, change the "filePattern" property to a new filename and
change the rollover policy (eg sized based policy to 1KB) to a setting that
will trigger easily.
2. Wait until the "refreshInterval" passes
3. Generate logs until the rollover policy is triggered and an archive file is
written.
Expected Result:
The archive file should be the modified filename.
Actual Result:
The archive file is still using the old filename.
Once the "fileName" parameter is modified, both "fileName" and "fileParameter"
are refreshed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]