[
https://issues.apache.org/jira/browse/LOG4J2-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory resolved LOG4J2-1818.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.8.1
Fixed in Git master.
> Fix rollover to work when filePattern contains no directory components
> ----------------------------------------------------------------------
>
> Key: LOG4J2-1818
> URL: https://issues.apache.org/jira/browse/LOG4J2-1818
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 2.8
> Reporter: Gary Gregory
> Assignee: Gary Gregory
> Fix For: 2.8.1
>
>
> See https://github.com/apache/logging-log4j2/pull/59
> Prior to this patch, the following config threw NPE at parent.mkdirs()
> because parent was null when using e.g.:
> {code:xml}
> <RollingRandomAccessFile name="FILE"
> fileName="foo.log"
> filePattern="foo-%d{yyyy-MM-dd}-%i.log.gz"
> immediateFlush="false">
> {code}
> while this config did not:
> {code:xml}
> <RollingRandomAccessFile name="FILE"
> fileName="foo.log"
> filePattern="./foo-%d{yyyy-MM-dd}-%i.log.gz"
> immediateFlush="false">
> {code}
> e.g. by adding ./ in front of the filePattern value.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]