title: How can I create Log4j 2 appender connected with jTextPane?
body: <p>I'm currently trying to make <code>Log4j 2</code> log into a <code>JTextPane</code>. It should act like a STDERR or STDOUT in Netbeans IDE console (incl. text style - color).</p>
  
  <p>I know that I need to create an <em>appender</em> and connect it with <code>JTextPane</code>, however I don't know how do it using <code>Log4j 2</code>. </p>
  
  <p>Do you have any suggestions?</p>
  
  <p>I appreciate your help,
  marty</p>