RSS


Log4j result in JTextPane

I recently wanted to redirect the output of Log4j to a JTextPane, so as to output messages to the JTextPane using a different color depending on the severity.

I spent some time searching for information and I quickly put together a small example. The following screenshot shows the output.

screenshot.jpg

The source code is available here.

Bookmark this post These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Y!GG
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Facebook

Tags: , ,

One Response to “Log4j result in JTextPane”

  1. Sabuj says:

    This is being very useful…

    Thanks a lot….

Leave a Reply