RE: Filter Based On Logging Class

2005-10-31 Thread Mangano, Jonathan
=org.apache.log4j.PatternLayout log4j.appender.JBoss.layout.ConversionPattern=%p %t %c - %m%n Hope this helps Jonathan -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Tuesday, 1 November 2005 5:15 AM To: Log4J Users List Subject: Re: Filter Based On Logging Class Hey

RE: Filter Based On Logging Class

2005-10-31 Thread Mangano, Jonathan
are. An in the case there is a log with a level of FATAL you probably want to know about it anyway. Regards Jonathan -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Tuesday, 1 November 2005 5:01 AM To: Log4J-User Subject: Filter Based On Logging Class Hey all, I

Re: Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
own logging. I want all JNP related log messages to go > into > > > > > jnp.logwhile the rest of the log messages go into > > > > > > > perpetuum.log. All messages should go into the console. > > > > > > > > > > > > > > Does this make se

Re: Filter Based On Logging Class

2005-10-31 Thread James Stauffer
t; the > > > > > > examples online and in the javadoc but I don't see this being > > done, > > > > atleast > > > > > > not the class stuff. I'll try the applicable suggestion from > > James. > > > > > > > > > >

Re: Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
; > > > > > If you can use log4j 1.3, you could use an ExpressionFilter, > with > > > the > > > > > > expression: > > > > > > > > > > > > CLASS ~= 'javax.naming' || CLASS ~= 'org.jnp.server'

Re: Filter Based On Logging Class

2005-10-31 Thread Jacob Kjome
you could use an ExpressionFilter, with > > the > > > > > expression: > > > > > > > > > > CLASS ~= 'javax.naming' || CLASS ~= 'org.jnp.server' > > > > > > > > > > With acceptonmatch to false > &

Re: Filter Based On Logging Class

2005-10-31 Thread James Stauffer
4j 1.3, you could use an ExpressionFilter, with > > the > > > > > expression: > > > > > > > > > > CLASS ~= 'javax.naming' || CLASS ~= 'org.jnp.server' > > > > > > > > > > With acceptonmatch t

Re: Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
tch to false > > > > > > > > See JavaDoc for more info on the filter. > > > > > > > > > http://svn.apache.org/viewcvs.cgi/logging/log4j/trunk/src/java/org/apach > > > > e/log4j/filter/ExpressionFilter.java?view=markup > > > >

Re: Filter Based On Logging Class

2005-10-31 Thread James Stauffer
gt; > > MSG, LOGGER, LEVEL, CLASS, FILE, LINE, METHOD, NDC, AND PROP. (which > > > allows you to filter on mdc with key ) > > > > > > Chainsaw describes this stuff in detail in the tutorial. > > > > > > Scott > > > > > >

Re: Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
ch > > e/log4j/filter/ExpressionFilter.java?view=markup > > > > Some of the keywords you can use are: > > MSG, LOGGER, LEVEL, CLASS, FILE, LINE, METHOD, NDC, AND PROP. (which > > allows you to filter on mdc with key ) > > > > Chainsaw describes thi

Re: Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
ou can use are: > MSG, LOGGER, LEVEL, CLASS, FILE, LINE, METHOD, NDC, AND PROP. (which > allows you to filter on mdc with key ) > > Chainsaw describes this stuff in detail in the tutorial. > > Scott > > -Original Message----- > From: Jeremy Whitlock [mailto:[EMA

RE: Filter Based On Logging Class

2005-10-31 Thread Scott Deboy
ge- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Monday, October 31, 2005 1:01 PM To: Log4J-User Subject: Filter Based On Logging Class Hey all, I would like to implement a filter that would allow me to restrict messages based on the class that is sending the LoggingEvent. So I could

Re: Filter Based On Logging Class

2005-10-31 Thread James Stauffer
If you don't want anything from those paths to be logged you could define loggers for them and set additivity to false. On 10/31/05, Jeremy Whitlock <[EMAIL PROTECTED]> wrote: > Hey all, > I would like to implement a filter that would allow me to restrict messages > based on the class that is send

Filter Based On Logging Class

2005-10-31 Thread Jeremy Whitlock
Hey all, I would like to implement a filter that would allow me to restrict messages based on the class that is sending the LoggingEvent. So I could have something like: And the filter would not log any class that created a LoggingEvent if that class was in either of those packages. Is there