Thomas H. created LOG4J2-2778:
---------------------------------

             Summary: Using header in PatternLayout with 
DirectWriteRolloverStrategy
                 Key: LOG4J2-2778
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2778
             Project: Log4j 2
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 2.13.0
            Reporter: Thomas H.
         Attachments: JavaApplication1.java, log4j2.xml

We are using RollingFileAppender with DirectWriteRolloverStrategy and a 
Patternlayout with header.

If the first log file is written there is no header in it but after rollover 
the second and the next log files contains the header.

When I use the flag append=false then I get a Nullpointer exception when the 
header should be written.

I added a code example to reproduce it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to