title: Log4j2 Error Handling
body: <p>Since I discovered some performance issues with log4j 1.2.x, I tried migrating to log4j2.</p>
  
  <p>Now I encountered a problem for which I can't find a solution.
  I have to rewrite the configuration file that was for log4j 1.2.x into a v2 compatible one.
  Problem occurs when I reached the property inside of an appender, called "errorHandler".</p>
  
  <p>Here is where errorHandler appears in my log4j 1.2.x context:</p>
  
  <pre><code>&lt;appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"&gt;
      &lt;errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/&gt;
      &lt;param name="Target" value="System.out"/&gt;
      &lt;param name="Threshold" value="WARN"/&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d %-5p [%t] %c - %m%n"/&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  </code></pre>
  
  <p>Could anybody tell me, which is the similar property, if exists one, in the log4j2 for errorHandler? 
  Or maybe, another alternative in log4j2 that would give me the exactly same result?</p>
  
  <p>Thanks in advance.</p>