logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Saremi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4NET-509) FileAppender with Header and Append settings writes header each time
Date Mon, 04 Apr 2016 15:56:25 GMT
Jeff Saremi created LOG4NET-509:
-----------------------------------

             Summary: FileAppender with Header and Append settings writes header each time
                 Key: LOG4NET-509
                 URL: https://issues.apache.org/jira/browse/LOG4NET-509
             Project: Log4net
          Issue Type: Bug
            Reporter: Jeff Saremi


Create a fileappender with header setting and appendToFile set to true
The header gets written to the log each time the application is run!
 Example settings:
    <appender name="LogFileAppender" type="log4net.Appender.FileAppender, log4net">
      <file name="somelogfile" />
      </file>
      <appendToFile value="true" />
      <layout type="log4net.Layout.PatternLayout">
        <header value="column1, column2, column3&#13;&#10;"/>
      </layout>
    </appender>

The file somelogfile will have header lines repeated throughout the log




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message