views:

40

answers:

1

I need to hack up a small tool. It should read a couple of files and convert them. Right now that works in my IDE. For the user, I'd like to add a small UI which simply shows the log output.

Do you know of a ready-to-use Swing appender for logback? Or something which redirects System.out to a little UI with nothing more than a text field and a "Close" button?

PS: I'm not looking for Chainsaw or Jigsaw or Lilith. I want the display of the log messages in the application, please.

+2  A: 

I often rely on JTextArea#append(), as suggested in this example. Unlike most of Swing, the method happens to be thread safe.

trashgod