You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2017/02/16 21:29:41 UTC
[jira] [Resolved] (LOG4J2-1818) Fix rollover to work when
filePattern contains no directory components
[ 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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org