title: How do I write logs and display them real-time in a Java Swing application?
body: <p>I have created a GUI program that uses a class to perform some tasks.</p>
  
  <p>I would like to add logging in both the <code>JFrame</code> and the class. Logs should be kept in a file and displayed in a <code>JTextArea</code> concurrently.</p>
  
  <p>What is a convient solution for this?</p>