You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Brad Lane <ba...@mchsi.com> on 2004/12/07 16:21:19 UTC
Chainsaw plugin for IntelliJ IDEA
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
Re: Chainsaw plugin for IntelliJ IDEA
Posted by Paul Smith <ps...@aconex.com>.
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.
>
--
*Paul Smith
*Software Architect
*Aconex
* 31 Drummond Street, Carlton, VIC 3053, Australia
*Tel: +61 3 9661 0200 *Fax: +61 3 9654 9946
Email: psmith@aconex.com www.aconex.com**
This email and any attachments are intended solely for the addressee.
The contents may be privileged, confidential and/or subject to copyright
or other applicable law. No confidentiality or privilege is lost by an
erroneous transmission. If you have received this e-mail in error,
please let us know by reply e-mail and delete or destroy this mail and
all copies. If you are not the intended recipient of this message you
must not disseminate, copy or take any action in reliance on it. The
sender takes no responsibility for the effect of this message upon the
recipient's computer system.**
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org