This looks good..I'll get my UDPReceiver to conform to the plugin model. Thought I'd tell you about a couple of new features I've added to the UI.
Each tab pane is now undockable (is placed in a JFrame) and can be redocked. I've also added a 'recover closed panes' feature to readd panes that were undocked and closed back to the tabbed pane if you want them back. I've also added another feature that others at work thought would be useful. Since events in my table get added to the bottom, if you select the last row, the view slides to the bottom and the most recently added row is selected when now events are received. I know the current UI inserts them at the top, but somehow this seemed counter-intuitive to the way I think of events being generated and how I want to look at them. If you're not on the bottom row, your view doesn't move. Scott -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 10:29 PM To: Log4J Developers List Subject: RE: Chainsaw patch - Create Main Window in ChainsawAppender OK. It is checked into cvs. Some future work: - I would like to remove/change the static variables in ChainsawAppender. Eventually multiple instances should be supported, each with their own model. - I would like to pass something different than the reference to the ChainsawAppender to the activateViewer() method of ChainsawViewer. Maybe just pass in a TableModel and an EventSink? But it looked like some of the gui stuff depended on ChainsawAppender specific methods, so I just used it for now. - I still want to do the Chainsaw LoggerRepository for chainsaw related messages. I know Paul weighed in. Does anyone else have a strong opinion about it? I've included Paul's configuration file modified to specify the viewer class for ChainsawAppender. Not very exciting since it is the DefaultViewer, but you get the idea. let me know what you think, -Mark <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true"> <appender name="Chainsaw" class="org.apache.log4j.chainsaw.ChainsawAppender"> <param name="ViewerClass" value="org.apache.log4j.chainsaw.DefaultViewer"/> </appender> <appender name="A2" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.SimpleLayout" /> </appender> <plugin name="SocketReceiver" class="org.apache.log4j.net.SocketReceiver"> <param name="Port" value="4445" /> </plugin> <logger name="org.apache.log4j.chainsaw" additivity="false"> <level value="info" /> <!--<appender-ref ref="A2" />--> </logger> <root> <level value="debug" /> <appender-ref ref="Chainsaw" /> </root> </log4j:configuration> --------------------------------------------------------------------- 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]