RE: Use Chainsaw in existing Swing application

2008-04-09 Thread Scott Deboy
If you want to slice & dice events, Chainsaw works well. If you have a static filter you'd like to apply to your events (for example, only display INFO or higher events), you can do that through a log4j config with your own appender - see LevelMatchFilter (http://logging.apache.org/log4j/1.2/

AW: Use Chainsaw in existing Swing application

2008-04-09 Thread Sertic Mirko, Bedag
Ok, that is a good idea. But if I want to have filters and everything else? -Ursprüngliche Nachricht- Von: Scott Deboy [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. April 2008 08:26 An: Log4J Users List Betreff: RE: Use Chainsaw in existing Swing application If your users don't nee

RE: Use Chainsaw in existing Swing application

2008-04-09 Thread Scott Deboy
If your users don't need the two-level filtering (filter tree and filter expression) and column-level sorting supported by Chainsaw, it'd probably make sense to create your own appender which populates a cyclic buffer - the cyclic buffer can be the data behind a JTable or JList that you display

AW: Use Chainsaw in existing Swing application

2008-04-09 Thread Sertic Mirko, Bedag
Hi Scott Thank you for your reply. So do I have to wait for the next release, or can I get the fixed version from CVS/SVN or somewhere else? I am thinking of the following usecase for my application: The application start. The user can click a menu item -> show application logs chainsaw should

Re: Thread Specific Appender

2008-04-09 Thread Paul Smith
On 10/04/2008, at 2:51 AM, Britton, David wrote: Hi -- I'm working on a project where we need to create a new log file for each thread we spawn. In researching how to do this, I ran across the following thread: http://mail-archives.apache.org/mod_mbox/logging-log4j-user/200710.mbox/[EMA

Re: Specify Repository

2008-04-09 Thread Jacob Kjome
Your repository selector selects the repository. You set the repository selector by calling LogManager.setRepositorySelector(selector, guard). Note that the guard is provided so that if someone else comes along a tries to reset it, they will get an IllegalArgumentException and be prevented fro

Re: Specify Repository

2008-04-09 Thread James A. N. Stauffer
If you provide the reason for your request we might be able to help better. On Wed, Apr 9, 2008 at 10:58 AM, Robert Pepersack <[EMAIL PROTECTED]> wrote: > I've checked the archives and didn't find an answer, but please forgive me if > this a duplicate post. > > I would like to be able to specify

Thread Specific Appender

2008-04-09 Thread Britton, David
Hi -- I'm working on a project where we need to create a new log file for each thread we spawn. In researching how to do this, I ran across the following thread: http://mail-archives.apache.org/mod_mbox/logging-log4j-user/200710.mbox/[EMAIL PROTECTED] This thread seems to state that there cou

RE: Use Chainsaw in existing Swing application

2008-04-09 Thread Scott Deboy
The org.apache.log4j.chainsaw.ChainsawAppender appender will allow you to start Chainsaw when your UI launches (or you can do it yourself programmatically using the same code the appender uses). However...Chainsaw won't work with this appender until the next release of Chainsaw (I just committed a

Specify Repository

2008-04-09 Thread Robert Pepersack
I've checked the archives and didn't find an answer, but please forgive me if this a duplicate post. I would like to be able to specify a repository for my logger to use. For example: Logger logger = new Logger("my.class.name", "myRepositoryName"); I read Chapter 8, "Extending log4j", and it

Use Chainsaw in existing Swing application

2008-04-09 Thread Sertic Mirko, Bedag
[EMAIL PROTECTED] Is it possible to integrate Chainsaw into an existing GPL bases Swing application? Can it be run as a component in another JFrame? How should that be done? Thanks in advance Mirko

Re: how to change the %m in PatternLayout

2008-04-09 Thread jm
Thanks for the replies. I achieved it by a Filter that puts the modified value in MDC thanks all On Tue, Apr 8, 2008 at 8:15 PM, Matthew Kemp <[EMAIL PROTECTED]> wrote: > You could create your own Layout class. While you loose some of the > flexibility of the PatternLayout class you can perform