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 "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/02/16 21:27:42 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15870720#comment-15870720 ]
ASF subversion and git services commented on LOG4J2-1818:
---------------------------------------------------------
Commit 62e348b3e44c6328b7b04d69ec7fc5d82950fa34 in logging-log4j2's branch refs/heads/master from ggregory
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=62e348b ]
[LOG4J2-1818]
Fix rollover to work when filePattern contains no directory components.
> 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
>
> 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