title: log4j2 highlight first line only in the console
body: <p>I am using log4j2 to log to the console and file as in this xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration status="INFO"&gt;
      &lt;Appenders&gt;
          &lt;Console name="Console" target="SYSTEM_OUT"&gt;
              &lt;PatternLayout pattern="%highlight{%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - Line %L: %msg%n}"/&gt;
          &lt;/Console&gt;
          &lt;File name="MyFile" fileName="all.log" immediateFlush="true" append="false"&gt;
              &lt;PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - Line %L: %msg%n"/&gt;
          &lt;/File&gt;
      &lt;/Appenders&gt;
      &lt;Loggers&gt;
          &lt;Root level="debug"&gt;
              &lt;AppenderRef ref="Console" level="error"/&gt;
              &lt;AppenderRef ref="MyFile" level="info"/&gt;
          &lt;/Root&gt;
      &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>
  
  <p>The problem is only the first line in the netbeans console appears in red while the remaining lines are black as in the following picture.</p>
  
  <p>Any help will be appreciated</p>
  
  <p>Update:I tried the project with eclipse and all lines appeared in black
  <img src="https://i.stack.imgur.com/WrAwa.png" alt="console output"></p>