Re: How to config LevelMatchFilter

2005-11-01 Thread Xin Zhao
> > From: Xin Zhao [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, November 01, 2005 6:22 PM > > To: Log4J Users List > > Subject: Re: How to config LevelMatchFilter > > > > > > Now I have tried to ues the xml config file as followed. But > > I still got tw

RE: How to config LevelMatchFilter

2005-11-01 Thread Bender Heri
So far it looks correct. Can you supply also the logger definition(s)? What happens on a WARN event? Heri > -Original Message- > From: Xin Zhao [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 01, 2005 6:22 PM > To: Log4J Users List > Subject: Re: How to config L

Re: How to config LevelMatchFilter

2005-11-01 Thread Xin Zhao
> > > the > > > > Filters in property file like what we do with the layout > > > > > > > > log4j.appender.emailWarnLog.layout org.apache.log4j.PatternLayout > > > > > > > > David > > > > > > > > &g

Re: How to config LevelMatchFilter

2005-11-01 Thread James Stauffer
gt; > > > > > > > > On 11/1/05, Bender Heri <[EMAIL PROTECTED]> wrote: > > > > > > > > IIRC you can't use Filters in property files, only in xml. > > > > > > > > Heri > > > > > > > > > -Original Message

Re: How to config LevelMatchFilter

2005-11-01 Thread Xin Zhao
> > > On 11/1/05, Bender Heri <[EMAIL PROTECTED]> wrote: > > > > > > IIRC you can't use Filters in property files, only in xml. > > > > > > Heri > > > > > > > -Original Message- > > > > From: Jam

Re: How to config LevelMatchFilter

2005-11-01 Thread James Stauffer
ou can't use Filters in property files, only in xml. > > > > Heri > > > > > -Original Message- > > > From: James Stauffer [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, November 01, 2005 4:18 PM > > > To: Log4J Users List > > > Subject:

Re: How to config LevelMatchFilter

2005-11-01 Thread Xin Zhao
;t use Filters in property files, only in xml. > > Heri > > > -Original Message- > > From: James Stauffer [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, November 01, 2005 4:18 PM > > To: Log4J Users List > > Subject: Re: How to config LevelMatchFilter >

RE: How to config LevelMatchFilter

2005-11-01 Thread Bender Heri
IIRC you can't use Filters in property files, only in xml. Heri > -Original Message- > From: James Stauffer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 01, 2005 4:18 PM > To: Log4J Users List > Subject: Re: How to config LevelMatchFilter > > > I o

Re: How to config LevelMatchFilter

2005-11-01 Thread James Stauffer
I only use XML config so I don't know. On 11/1/05, Xin Zhao <[EMAIL PROTECTED]> wrote: > No, I only need ERROR level. > > And my real question is if i could use the LevelMatchFilter in plain conifg > file not xml. > > David > > On 11/1/05, James Stauffer <[EMAIL PROTECTED]> wrote: > > > > Assuming

Re: How to config LevelMatchFilter

2005-11-01 Thread Xin Zhao
No, I only need ERROR level. And my real question is if i could use the LevelMatchFilter in plain conifg file not xml. David On 11/1/05, James Stauffer <[EMAIL PROTECTED]> wrote: > > Assuming you also want emails for FATAL logs then you don't need > LevelMatchFilter. Just setting the Threshold t

Re: How to config LevelMatchFilter

2005-11-01 Thread James Stauffer
Assuming you also want emails for FATAL logs then you don't need LevelMatchFilter. Just setting the Threshold to ERROR should work fine. On 11/1/05, Xin Zhao <[EMAIL PROTECTED]> wrote: > Sorry, my example is wrong, i should set the acceptOnMatch to be true. > > I try to send out email only when E

Re: How to config LevelMatchFilter

2005-11-01 Thread Xin Zhao
Sorry, my example is wrong, i should set the acceptOnMatch to be true. I try to send out email only when ERROR level is reached. David On 11/1/05, James Stauffer <[EMAIL PROTECTED]> wrote: > > What are you trying to do? It appears that you only want ERROR and > higher but you use LevelToMatch to

Re: How to config LevelMatchFilter

2005-11-01 Thread James Stauffer
What are you trying to do? It appears that you only want ERROR and higher but you use LevelToMatch to reject ERROR. Also, I think SMTPAppender has a buffer so it only sends an email when it has a certain amount of data or there is an ERROR log. On 11/1/05, Xin Zhao <[EMAIL PROTECTED]> wrote: > hi

How to config LevelMatchFilter

2005-11-01 Thread Xin Zhao
hi all, I am trying to config the SMTPAppender with LevelMatchFilter by using the plain config file as followed. But it does not work. Some one said the LevelMatchFilter only works in XML config file. Is it true? - log4j.appender.emailWarnLog org.