Description
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.:
<RollingRandomAccessFile name="FILE" fileName="foo.log" filePattern="foo-%d{yyyy-MM-dd}-%i.log.gz" immediateFlush="false">
while this config did not:
<RollingRandomAccessFile name="FILE" fileName="foo.log" filePattern="./foo-%d{yyyy-MM-dd}-%i.log.gz" immediateFlush="false">
e.g. by adding ./ in front of the filePattern value.
Attachments
Issue Links
- is duplicated by
-
LOG4J2-1815 An exception occurred processing Appender RollingFileMain java.lang.NullPointerException
- Resolved