Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1140

Headers not being written to first file with RollingFileAppender

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4.1
    • Component/s: Appenders, Layouts
    • Labels:
      None
    • Environment:

      Windows 7_x64
      JDK: 1.8.0_51

      Description

      It appears the fix for LOG4J2-1030 prevents the headers from being written to the the first file (when the file does not exist) while using a RollingFileAppender. However, the header is written during a file rollover.
      This is not a huge issue when using PatternLayout, since you will just lose the desired header, but is a bigger issue when using HTMLLayout, since the important HTML document header information is not written and all events logged are displayed inline and not in the table.
      Also, on another note, the date pattern

      "%d{ISO8601}{UTC}"

      does not appear to work correctly in 2.4.

      Here is the simple test program and configuration file I used...outputs from 2.3 and 2.4 follow:

      Log4j2Test.java
      package log4j2test;
      
      import org.apache.logging.log4j.LogManager;
      import org.apache.logging.log4j.Logger;
      
      public class Log4j2Test {
      
          public static void main(String[] args) {
              System.setProperty("log4j.configurationFile", "log_config.xml");
              Logger logger = LogManager.getLogger(Log4j2Test.class.getName());
              logger.info("Log4j Version: " + LogManager.class.getPackage().getImplementationVersion());
              for (int i = 0; i < 25; i++) {
                  logger.debug("Msg: " + i);
              }
          }
      }
      
      log_config.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <Configuration name="Test Logger Configuration" monitorInterval="30">
          <Appenders>
              <Console name="STDOUT" target="SYSTEM_OUT">
                  <PatternLayout pattern="%d{ISO8601}{UTC} %-5p [%t] %-17c (%F:%L) - %m%n"/>
              </Console>
              <RollingFile name="TextFile" fileName="history.log" filePattern="history-%i.log">
                  <PatternLayout header="[Header]&#13;&#10;" footer="[Footer]&#13;&#10;" pattern="%d{ISO8601}{UTC} %-5p (%F:%L) - %m%n"/>
                  <Policies>
                      <SizeBasedTriggeringPolicy size="1KB"/>
                  </Policies>
                  <DefaultRolloverStrategy max="2" />
              </RollingFile>
              <RollingFile name="HtmlFile" fileName="historyLog.html" filePattern="historyLog-%i.html">
                  <HTMLLayout title="History Log"/>
                  <Policies>
                      <SizeBasedTriggeringPolicy size="5KB"/>
                  </Policies>
                  <DefaultRolloverStrategy max="2" />
              </RollingFile>
          </Appenders>
          <Loggers>
              <Root level="debug">
                  <AppenderRef ref="STDOUT"/>
                  <AppenderRef ref="TextFile"/>
                  <AppenderRef ref="HtmlFile"/>
              </Root>
          </Loggers>
      </Configuration>
      
      PatternLayout output from 2.3 - first file written (history-1.log)
      [Header]
      2015-09-29T14:06:21,405 INFO  (Log4j2Test.java:11) - Log4j Version: 2.3
      2015-09-29T14:06:21,410 DEBUG (Log4j2Test.java:13) - Msg: 0
      2015-09-29T14:06:21,411 DEBUG (Log4j2Test.java:13) - Msg: 1
      2015-09-29T14:06:21,411 DEBUG (Log4j2Test.java:13) - Msg: 2
      2015-09-29T14:06:21,411 DEBUG (Log4j2Test.java:13) - Msg: 3
      2015-09-29T14:06:21,412 DEBUG (Log4j2Test.java:13) - Msg: 4
      2015-09-29T14:06:21,413 DEBUG (Log4j2Test.java:13) - Msg: 5
      2015-09-29T14:06:21,413 DEBUG (Log4j2Test.java:13) - Msg: 6
      2015-09-29T14:06:21,414 DEBUG (Log4j2Test.java:13) - Msg: 7
      2015-09-29T14:06:21,414 DEBUG (Log4j2Test.java:13) - Msg: 8
      2015-09-29T14:06:21,414 DEBUG (Log4j2Test.java:13) - Msg: 9
      2015-09-29T14:06:21,415 DEBUG (Log4j2Test.java:13) - Msg: 10
      2015-09-29T14:06:21,415 DEBUG (Log4j2Test.java:13) - Msg: 11
      2015-09-29T14:06:21,415 DEBUG (Log4j2Test.java:13) - Msg: 12
      2015-09-29T14:06:21,416 DEBUG (Log4j2Test.java:13) - Msg: 13
      2015-09-29T14:06:21,416 DEBUG (Log4j2Test.java:13) - Msg: 14
      2015-09-29T14:06:21,417 DEBUG (Log4j2Test.java:13) - Msg: 15
      [Footer]
      
      PatternLayout output from 2.3 - rollover file (history.log)
      [Header]
      2015-09-29T14:06:21,417 DEBUG (Log4j2Test.java:13) - Msg: 16
      2015-09-29T14:06:21,429 DEBUG (Log4j2Test.java:13) - Msg: 17
      2015-09-29T14:06:21,430 DEBUG (Log4j2Test.java:13) - Msg: 18
      2015-09-29T14:06:21,430 DEBUG (Log4j2Test.java:13) - Msg: 19
      2015-09-29T14:06:21,431 DEBUG (Log4j2Test.java:13) - Msg: 20
      2015-09-29T14:06:21,432 DEBUG (Log4j2Test.java:13) - Msg: 21
      2015-09-29T14:06:21,432 DEBUG (Log4j2Test.java:13) - Msg: 22
      2015-09-29T14:06:21,448 DEBUG (Log4j2Test.java:13) - Msg: 23
      2015-09-29T14:06:21,448 DEBUG (Log4j2Test.java:13) - Msg: 24
      [Footer]
      
      HTMLLayout output from 2.3 - first file written (historyLog-1.html)
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <meta charset="UTF-8"/>
      <title>History Log</title>
      <style type="text/css">
      <!--
      body, table {font-family:arial,sans-serif; font-size: medium;}
      th {background: #336699; color: #FFFFFF; text-align: left;}
      -->
      </style>
      </head>
      <body bgcolor="#FFFFFF" topmargin="6" leftmargin="6">
      <hr size="1" noshade="noshade">
      Log session start time Tue Sep 29 10:06:21 EDT 2015<br>
      <br>
      <table cellspacing="0" cellpadding="4" border="1" bordercolor="#224466" width="100%">
      <tr>
      <th>Time</th>
      <th>Thread</th>
      <th>Level</th>
      <th>Logger</th>
      <th>Message</th>
      </tr>
      
      <tr>
      <td>403</td>
      <td title="main thread">main</td>
      <td title="Level">INFO</td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Log4j Version: 2.3</td>
      </tr>
      
      <tr>
      <td>408</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 0</td>
      </tr>
      
      <tr>
      <td>409</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 1</td>
      </tr>
      
      <tr>
      <td>409</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 2</td>
      </tr>
      
      <tr>
      <td>409</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 3</td>
      </tr>
      
      <tr>
      <td>410</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 4</td>
      </tr>
      
      <tr>
      <td>411</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 5</td>
      </tr>
      
      <tr>
      <td>411</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 6</td>
      </tr>
      
      <tr>
      <td>412</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 7</td>
      </tr>
      
      <tr>
      <td>412</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 8</td>
      </tr>
      
      <tr>
      <td>412</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 9</td>
      </tr>
      
      <tr>
      <td>413</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 10</td>
      </tr>
      
      <tr>
      <td>413</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 11</td>
      </tr>
      
      <tr>
      <td>413</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 12</td>
      </tr>
      
      <tr>
      <td>414</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 13</td>
      </tr>
      
      <tr>
      <td>414</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 14</td>
      </tr>
      
      <tr>
      <td>415</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 15</td>
      </tr>
      
      <tr>
      <td>415</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 16</td>
      </tr>
      
      <tr>
      <td>427</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 17</td>
      </tr>
      
      <tr>
      <td>428</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 18</td>
      </tr>
      
      <tr>
      <td>428</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 19</td>
      </tr>
      
      <tr>
      <td>429</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 20</td>
      </tr>
      
      <tr>
      <td>430</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 21</td>
      </tr>
      </table>
      <br>
      </body></html>
      
      HTMLLayout output from 2.3 - rollover file (historyLog.html)
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <meta charset="UTF-8"/>
      <title>History Log</title>
      <style type="text/css">
      <!--
      body, table {font-family:arial,sans-serif; font-size: medium;}
      th {background: #336699; color: #FFFFFF; text-align: left;}
      -->
      </style>
      </head>
      <body bgcolor="#FFFFFF" topmargin="6" leftmargin="6">
      <hr size="1" noshade="noshade">
      Log session start time Tue Sep 29 10:06:21 EDT 2015<br>
      <br>
      <table cellspacing="0" cellpadding="4" border="1" bordercolor="#224466" width="100%">
      <tr>
      <th>Time</th>
      <th>Thread</th>
      <th>Level</th>
      <th>Logger</th>
      <th>Message</th>
      </tr>
      
      <tr>
      <td>430</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 22</td>
      </tr>
      
      <tr>
      <td>446</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 23</td>
      </tr>
      
      <tr>
      <td>446</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 24</td>
      </tr>
      </table>
      <br>
      </body></html>
      
      PatternLayout output from 2.4 - first file written (history-1.log)
      2015-09-29 10:04:37,590 INFO  (Log4j2Test.java:11) - Log4j Version: 2.4
      2015-09-29 10:04:37,594 DEBUG (Log4j2Test.java:13) - Msg: 0
      2015-09-29 10:04:37,594 DEBUG (Log4j2Test.java:13) - Msg: 1
      2015-09-29 10:04:37,594 DEBUG (Log4j2Test.java:13) - Msg: 2
      2015-09-29 10:04:37,595 DEBUG (Log4j2Test.java:13) - Msg: 3
      2015-09-29 10:04:37,595 DEBUG (Log4j2Test.java:13) - Msg: 4
      2015-09-29 10:04:37,595 DEBUG (Log4j2Test.java:13) - Msg: 5
      2015-09-29 10:04:37,596 DEBUG (Log4j2Test.java:13) - Msg: 6
      2015-09-29 10:04:37,596 DEBUG (Log4j2Test.java:13) - Msg: 7
      2015-09-29 10:04:37,596 DEBUG (Log4j2Test.java:13) - Msg: 8
      2015-09-29 10:04:37,596 DEBUG (Log4j2Test.java:13) - Msg: 9
      2015-09-29 10:04:37,597 DEBUG (Log4j2Test.java:13) - Msg: 10
      2015-09-29 10:04:37,597 DEBUG (Log4j2Test.java:13) - Msg: 11
      2015-09-29 10:04:37,598 DEBUG (Log4j2Test.java:13) - Msg: 12
      2015-09-29 10:04:37,598 DEBUG (Log4j2Test.java:13) - Msg: 13
      2015-09-29 10:04:37,598 DEBUG (Log4j2Test.java:13) - Msg: 14
      2015-09-29 10:04:37,598 DEBUG (Log4j2Test.java:13) - Msg: 15
      [Footer]
      
      PatternLayout output from 2.4 - rollover file (history.log)
      [Header]
      2015-09-29 10:04:37,599 DEBUG (Log4j2Test.java:13) - Msg: 16
      2015-09-29 10:04:37,615 DEBUG (Log4j2Test.java:13) - Msg: 17
      2015-09-29 10:04:37,616 DEBUG (Log4j2Test.java:13) - Msg: 18
      2015-09-29 10:04:37,616 DEBUG (Log4j2Test.java:13) - Msg: 19
      2015-09-29 10:04:37,616 DEBUG (Log4j2Test.java:13) - Msg: 20
      2015-09-29 10:04:37,617 DEBUG (Log4j2Test.java:13) - Msg: 21
      2015-09-29 10:04:37,617 DEBUG (Log4j2Test.java:13) - Msg: 22
      2015-09-29 10:04:37,642 DEBUG (Log4j2Test.java:13) - Msg: 23
      2015-09-29 10:04:37,643 DEBUG (Log4j2Test.java:13) - Msg: 24
      [Footer]
      
      HTMLLayout output from 2.4 - first file written (historyLog-1.html)
      <tr>
      <td>442</td>
      <td title="main thread">main</td>
      <td title="Level">INFO</td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Log4j Version: 2.4</td>
      </tr>
      
      <tr>
      <td>446</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 0</td>
      </tr>
      
      <tr>
      <td>446</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 1</td>
      </tr>
      
      <tr>
      <td>446</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 2</td>
      </tr>
      
      <tr>
      <td>447</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 3</td>
      </tr>
      
      <tr>
      <td>447</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 4</td>
      </tr>
      
      <tr>
      <td>447</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 5</td>
      </tr>
      
      <tr>
      <td>448</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 6</td>
      </tr>
      
      <tr>
      <td>448</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 7</td>
      </tr>
      
      <tr>
      <td>448</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 8</td>
      </tr>
      
      <tr>
      <td>448</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 9</td>
      </tr>
      
      <tr>
      <td>449</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 10</td>
      </tr>
      
      <tr>
      <td>449</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 11</td>
      </tr>
      
      <tr>
      <td>450</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 12</td>
      </tr>
      
      <tr>
      <td>450</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 13</td>
      </tr>
      
      <tr>
      <td>450</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 14</td>
      </tr>
      
      <tr>
      <td>450</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 15</td>
      </tr>
      
      <tr>
      <td>451</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 16</td>
      </tr>
      
      <tr>
      <td>467</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 17</td>
      </tr>
      
      <tr>
      <td>468</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 18</td>
      </tr>
      
      <tr>
      <td>468</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 19</td>
      </tr>
      
      <tr>
      <td>468</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 20</td>
      </tr>
      
      <tr>
      <td>469</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 21</td>
      </tr>
      </table>
      <br>
      </body></html>
      
      HTMLLayout output from 2.4 - rollover file (historyLog.html)
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <meta charset="UTF-8"/>
      <title>History Log</title>
      <style type="text/css">
      <!--
      body, table {font-family:arial,sans-serif; font-size: medium;}
      th {background: #336699; color: #FFFFFF; text-align: left;}
      -->
      </style>
      </head>
      <body bgcolor="#FFFFFF" topmargin="6" leftmargin="6">
      <hr size="1" noshade="noshade">
      Log session start time Tue Sep 29 10:04:37 EDT 2015<br>
      <br>
      <table cellspacing="0" cellpadding="4" border="1" bordercolor="#224466" width="100%">
      <tr>
      <th>Time</th>
      <th>Thread</th>
      <th>Level</th>
      <th>Logger</th>
      <th>Message</th>
      </tr>
      
      <tr>
      <td>469</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 22</td>
      </tr>
      
      <tr>
      <td>494</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 23</td>
      </tr>
      
      <tr>
      <td>495</td>
      <td title="main thread">main</td>
      <td title="Level"><font color="#339933">DEBUG</font></td>
      <td title="log4j2test.Log4j2Test logger">log4j2test.Log4j2Test</td>
      <td title="Message">Msg: 24</td>
      </tr>
      </table>
      <br>
      </body></html>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                remkop@yahoo.com Remko Popma
                Reporter:
                mtnbiker987 Matt Barron
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: