title: How do I write an appender that only handles exceptions and still have all other logs logged normally through a root ConsoleAppender
body: <p>I have a situation where when <code>log.error("message", exception);</code> is called, I want some logic to happen around sending the exception to an external tool, while still maintaining the regular logging for the line to the root appender. </p>
  
  <p>As an example, here would be some code and the expected outcome:</p>
  
  <pre class="lang-java prettyprint-override"><code>try {
     ...
  } catch (Exception ex) {
     LOG.info("abcd");
     LOG.error("failed to XYZ", ex);
  }
  </code></pre>
  
  <p>Rough Outcome:</p>
  
  <pre><code>2019-03-05 13:00:20 INFO  Main:75 - abcd
  2019-03-05 13:00:20 ERROR  Main:76 - failed to XYZ - 
  Exception: exception message
    stacktrace
    stacktrace
    ...
  </code></pre>
  
  <p>While that is logged, I also want the exception sent through another code path. </p>
  
  <p>How can I do this? I'm a bit stuck, does anyone know any good guides for this?</p>