Thanks for the reply, finally :-) I haven't had time to work on it
anyway but this will give me a starting point when I do.
HUGE apologies for the delay here.
From CVS Head, the key classes are:
org.apache.log4j.chainsaw.LogUI - this is the 'startup' class that
contains the main(...) method, as well as a static method,
createChainsawGUI(ApplicationPreferenceModel, Action), that is
designed so that one could create the UI as needed from within an
existing application (I'm not sure if anyone is using this or not, but
it's there). LogUI, after setting up Receivers defined via
configuration file if configured to do so, during initialisation sets
up ChainsawAppenderHandler which is _exactly_ like an appender. It
sit's as an appender to the log4j 'bus' and then buffers them, and
periodically dispatches them to registered EventBatchListener's, one
of which is an inner-class of LogUI, NewTabEventBatchReceiver.
NewTabEventBatchReceiver then uses an identifier to determine which
LogPanel the event should be routed to. It looks up the LogPanel
instance, and sends the event to that LogPanel's table model.
That's about all I have time for in terms of explaining. I'm not sure
what state Chainsaw is in for creating a plugin for IDEA etc, but feel
free to ask more questions, I will really try harder to reply earlier! :)
cheers,
Paul Smith
Brad Lane wrote:
I want to write a Chainsaw plugin for IDEA but I'm having a hard time
getting started. I have the log4j source code from CVS but I was
hoping someone could give me a pointer as to where to start. i.e. -
classes to initialize Chainsaw, settings dialogs, etc... Any help
would be truly appreciated.
P.S. - Sorry if this is the wrong forum for this question. Please
point me to the correct place if it is.
--
--
"A man's ethical behavior should be based effectually on sympathy, education, and
social ties and needs; no religious basis is necessary. Man would indeed be in a poor way
if he had to be restrained by fear of punishment and hope of reward after death."
[Albert Einstein, "Religion and Science", New York Times Magazine, 9 November
1930]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]