How much of LogPanel's functionality do you need in your app?

If you're just displaying the message text and event times (no filtering or 
colorizing), I'd suggest using something like ListModelAppender and your own 
JTable.  

Here's a link to ListModelAppender:
http://svn.apache.org/viewvc/logging/log4j/trunk/src/java/org/apache/log4j/varia/ListModelAppender.java?view=markup

Let us know if you need filtering and colorizing - LogPanel probably has some 
dependencies on LogUI that would need to be separated - a good refactoring 
exercise for sure (patches are always appreciated!)


Scott



-----Original Message-----
From: rd [mailto:[EMAIL PROTECTED]
Sent: Fri 6/23/2006 5:39 AM
To: [email protected]
Subject: Integrate Chainsaw/Log4J in App
 
hi,

i'm currently rewriting an application and since i use java, i decided
to use log4j for the logging process. the users need to see most of the
log messages i'm printing (except for the debug and trace msgs) i
suggested they use chainsaw but unfortunately they don't want to an
additional window on their desktop (seems, it's already packed :-))

so, in the last few days, i tried to integrate chainsaw's logpanel into
my app but had no luck.

first i tried extend the logpanel-class but its  variables are all
private and no getters or setters exist. then i copied its source and
altered the few things i needed to paint to my app's panel. at first
this seemed to work just fine, however i didn't receive neither my nor
chainsaw's own log msgs. then i played around a bit and at some point i
got a lot of chainsaw's messages, strangely enough chainsaw now had 100%
cpu time and received the same messages over and over again in some kind
of infinite loop.

do you think there is another solution but tediously re-coding
chainsaw's functionality or has anybody encountered similar problems?

ideas are welcome  :)

thank you

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to