Thanks. I try the XMLSample with the configuration file "sample1.xml", it
works.

But when I use the same configurion file in my application, it fails with
the following exception:
log4j:ERROR DOM element is - not a <log4j:configuration> element.
log4j:WARN No appenders could be found for logger (root).
log4j:WARN Please initialize the log4j system properly.

I use Xerces_2_0_2 in my application, would that causes any problem?
If not, could someone please tell me how to fix that?

Thank you.
Sam


-----Original Message-----
From: Klein, Scott @ TW [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 2:05 PM
To: 'Log4J Users List'
Subject: RE: How to add Filter to an Appender


<Log4J_DIR>\src\java\org\apache\log4j\xml\examples

-----Original Message-----
From: Samuel Cheung [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 12:04 PM
To: 'Log4J Users List'
Subject: RE: How to add Filter to an Appender


Mark,

Thanks. Is there a sample configure file for DOMConfigurator in the example
directory?
I can't find it there.

Sam

-----Original Message-----
From: Mark Womack [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 11:56 AM
To: 'Log4J Users List'
Subject: RE: How to add Filter to an Appender


I do not believe that filters are supported in the PropertyConfigurator.
You'll need to use DOMConfigurator.

-Mark

> -----Original Message-----
> From: Samuel Cheung [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 9:54 AM
> To: 'Log4J Users List'
> Subject: How to add Filter to an Appender
> 
> 
> Hi,
> 
> Could some one please tell me how to add a Filter to an 
> appender in log4j
> config file?
> 
> I add this in my config file
> log4j.appender.A2.filter=org.apache.log4j.varia.LevelMatchFilter
> 
> but I got the following warning:
> log4j:WARN Failed to set property [filter] to value
> "org.apache.log4j.varia.LevelMatchFilter". 
> 
> Thanks.
> Sam
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to