logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-1818) Fix rollover to work when filePattern contains no directory components
Date Thu, 16 Feb 2017 21:24:41 GMT
Gary Gregory created LOG4J2-1818:
------------------------------------

             Summary: 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


Mime
View raw message