RE: LevelMatchFilter does not match CustomLevel

2004-02-29 Thread Simon Dorrat
Taner, In order to use a custom level in the LevelMatchFilter (or pretty much anywhere), you need to specify the name of your custom class. For example, instead of use Note that the class name specified needs to be fully qualified, so add the package info after the #. Simo

Getting the current class name in static code

2004-02-29 Thread Stephen Chell (DSL AK)
In log4j a popular way to name loggers is to name them by software component. This can be performed by statically instantiating a logger in each class, as follows: package com.foo; import org.apache.log4j.Logger; public class Bar { static Logger logger = Logger.getLogger(Bar.class); ... }

Re: update to install-chainsaw.xml + question

2004-02-29 Thread Jacob Kjome
At 08:37 AM 3/1/2004 +1100, you wrote: > One other thing. Has anyone else noticed that when you run "ant chainsaw" > on the Log4j build that the attempt by Ant to delete the log4j and chainsaw > jar files fails if they exist already? I can't figure out why this would > be. I can delete them jus

Re: Log4j: appender specific logging levels?

2004-02-29 Thread Paul Smith
> It would seem that the most intuitive way to configure this would be to > configure two different appenders for the Root logger, with each > appender > having its own message priority level and layout. However, as I > understand > it the priority level can only be set by logger, not appender. >

Log4j: appender specific logging levels?

2004-02-29 Thread Stephen Chell (DSL AK)
Hi all, I'm new to log4j. I know what I want to achieve, but the most intuitive way of achieving it doesn't seem possible with the current release of log4j. The design goals I have are as follows: 1. Name loggers by software component. ie statically instantiate a logger in each class,

Re: update to install-chainsaw.xml + question

2004-02-29 Thread Paul Smith
On Wed, 2004-02-25 at 16:51, Jacob Kjome wrote: > Wanted to let people know that I updated the install-chainsaw.xml to use > the logging-log4j CVS module rather than jakarta-log4j, have it use the > up-to-date 2.0.8 Jakarta-oro package, and added a commented out stub of > listing all needed dep

ThreadLocalAppender for log4j?

2004-02-29 Thread Ramakrishna Menon
Folks My first question to the list - and I admit I am not a log4j pro:-) - I did look around quite a bit before posting... Basically, the requirement is very simple: We are using J2EE infrastructure (jsp, middle tier code accessing data in the database) to render UI. During the UI rendering the

Re: Performance problems when using log4j v1.2.8

2004-02-29 Thread Paul Smith
On Sat, 2004-02-28 at 10:29, Drapeau, Tom wrote: > Hi there, > > I recently installed log4j on a FreeBSD system and have been playing > with various options trying to improve the performance of the > SMTPAppender. > > I have attached my log4j.properties file below. > > The SyslogAppender is runn

RE: pattern and chainsaw

2004-02-29 Thread Scott Deboy
I agree, log files stored in a non-XML format should be viewable in Chainsaw v2. I contributed a Receiver which provides Log4J (and Chainsaw v2) the ability to process events stored in a logfile written using an arbitrary format (PatternLayout). In order to use this receiver, follow the instruct