Return-Path: Delivered-To: apmail-jakarta-log4j-dev-archive@apache.org Received: (qmail 84624 invoked from network); 11 Jul 2003 02:47:41 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Jul 2003 02:47:41 -0000 Received: (qmail 29657 invoked by uid 97); 11 Jul 2003 02:50:18 -0000 Delivered-To: qmlist-jakarta-archive-log4j-dev@nagoya.betaversion.org Received: (qmail 29650 invoked from network); 11 Jul 2003 02:50:18 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 11 Jul 2003 02:50:18 -0000 Received: (qmail 84402 invoked by uid 500); 11 Jul 2003 02:47:39 -0000 Mailing-List: contact log4j-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@jakarta.apache.org Received: (qmail 84389 invoked from network); 11 Jul 2003 02:47:39 -0000 Received: from unknown (HELO ike.local.anstat.com.au) (202.92.123.11) by daedalus.apache.org with SMTP; 11 Jul 2003 02:47:39 -0000 Received: by ike.local.anstat.com.au with Internet Mail Service (5.5.2655.55) id <3H6RNR4L>; Fri, 11 Jul 2003 12:47:47 +1000 Message-ID: <7395B46C07F8D51182AE000629570CC4B2E33E@ike.local.anstat.com.au> From: Paul Smith To: 'Log4J Developers List' Subject: RE: Patch: Override ExitAction in Chainsaw Date: Fri, 11 Jul 2003 12:47:44 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: text/plain; charset="UTF-8" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N We will definately take your points into consideration, as they are quite valid. In fact, probably right now Chainsaw v2 is violating the somewhat hidden contract of the ChainsawViewer interface (this is how you can get the new Log4UI GUI class to popup if you specify it as an appender in a log4j configuration file). Under this circumstance also, an "exit" action is really an indication that the user is finished with the gui, not necessarily finished with the VM. Perhaps we could define an configuration option for Chainsaw which defines the class name of the Exit action, much the same way you define the Layout class for an appender. For your code, we could allow you to just do this under Chainsaw 2: ... LogUI logUI = LogUI.createForInVM(); logUI.setExitAction(myExitAction); logUI.activateViewer(); ... Oh, and have a great vacation! Thanks again, Paul -----Original Message----- From: Matt Munz [mailto:mmunz@apelon.com] Sent: Friday, 11 July 2003 11:45 AM To: Log4J Developers List Subject: RE: Patch: Override ExitAction in Chainsaw Paul, I'm going on vacation and won't be able to look at Chainsaw v2 until next month :( For my application, the primary feature I'd like to see is the ability to treat Chainsaw as a software component, rather than just as a standalone application. This means making sure that System.exit() is never called, or is limited to one overrideable point, as indicated in the patch I sent. Just as log4j is embedded within my application, it makes sense to me that a log4j GUI would be embedded in the GUI for my application. The more OO/componetized Chainsaw is, the better for my purposes. This would also be useful in embedding Chainsaw in other applications like IDEs and server administration consoles. Something as simple as a ChainsawPanel that I could add to my GUI would be really cool... BTW, I just had my first use for NDC -- whoever is responsible for this design, thanks -- it's always nice to find a generic solution that actually fits my specific problem... - Matt -----Original Message----- From: Paul Smith [mailto:Paul.Smith@lawlex.com.au] Sent: Thu 7/10/2003 7:17 PM To: 'Log4J Developers List' Cc: Subject: RE: Patch: Override ExitAction in Chainsaw Hi Matt, Thanks for the patch, but unfortunately the old Chainsaw is now replaced with the new version in CVS, so I don't think I can apply this one. I'm not aware of any discussion of an interim 1.2.9 release, I think we're just working our way towards 1.3. I haven't had a chance to do much Chainsaw v2 work lately, but if you are game, perhaps you could try out the new Chainsaw running in-Vm with your app? I think I have some spare mental-bandwidth at the moment to help out with any issues you have. You're scenario would be a good test for us, as I don't think we've done much testing along this line, and I would be really keen to ensure it works really well. cheers, Paul Smith > -----Original Message----- > From: Matt Munz [mailto:mmunz@apelon.com] > Sent: Friday, 11 July 2003 8:39 AM > To: log4j-dev@jakarta.apache.org > Subject: Patch: Override ExitAction in Chainsaw > > > Hi all, > > This is probably fixed in the latest Chainsaw, but I > thought I'd forward this patch against 1.2.8 anyway. In the > two attached files, the only change is to allow one to pass > in the Action object that is registered with close events. I > needed this functionality to run Chainsaw in-VM with my application. > > BTW, will there be a 1.2.9 release including the Chainsaw > changes, or will I have to wait for 1.3? > > - Matt > > > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-dev-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-dev-help@jakarta.apache.org