=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
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
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
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.
> > > > > >
> > > >
; > > > > > If you can use log4j 1.3, you could use an ExpressionFilter,
> with
> > > the
> > > > > > expression:
> > > > > >
> > > > > > CLASS ~= 'javax.naming' || CLASS ~= 'org.jnp.server'
you could use an ExpressionFilter, with
> > the
> > > > > expression:
> > > > >
> > > > > CLASS ~= 'javax.naming' || CLASS ~= 'org.jnp.server'
> > > > >
> > > > > With acceptonmatch to false
> &
4j 1.3, you could use an ExpressionFilter, with
> > the
> > > > > expression:
> > > > >
> > > > > CLASS ~= 'javax.naming' || CLASS ~= 'org.jnp.server'
> > > > >
> > > > > With acceptonmatch t
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
> > > >
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
> > >
> > >
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
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
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
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
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
14 matches
Mail list logo