Mark is absolutely right, the javadoc for PropertyConfigurator reads:

"The PropertyConfigurator does not handle the advanced configuration
features supported by the DOMConfigurator such as support for Filters,
custom ErrorHandlers, nested appenders such as the AsyncAppender, etc."

I sugguest starting with XML configuration files sooner rather than later;
it gives you full freedom with respect to configurable Log4j parameters, and
is also (in my opinion) much more perspicuous than property files.

--

Thomas


| -----Original Message-----
| From: Mark Womack [mailto:[EMAIL PROTECTED]]
| Sent: 07 June 2002 21:23
| To: 'Log4J Users List'
| Subject: RE: Filters and configuration
|
|
| Scott,
|
| Filters can be added via a configuration file.  It used to be the
| case that
| filter configuration was only supported in xml file and not
| property files.
| But that may be different now.  You may want to look through the
| PropertyConfigurator code to see if it does anything with filters.
|
| -Mark
|
| > -----Original Message-----
| > From: Klein, Scott @ TW [mailto:[EMAIL PROTECTED]]
| > Sent: Friday, June 07, 2002 11:58 AM
| > To: Log4J-User (E-mail)
| > Subject: Filters and configuration
| >
| >
| > Are filters meant only to be added programatically, or can
| > they also be
| > added in the configuration file? I have not seen mention of
| > them in any
| > sample config files I have seen so I am assuming they must be added
| > programtically - however, the appenders (I assume) use a
| > LevelRangeFilter by
| > default but this is not set by anything like:
| >
| > log4j.appender.MyAppender.filter=MyFirstFilter
| > log4j.appender.MyAppender.filter=MySecondFilter
| >
| > log4j.filter.MyFirstFilter=com.foo.MyFirstFilter
| > log4j.filter.MyFirstFilter.attribute1=value1
| > log4j.filter.MySecondFilter=com.foo.MySecondFilter
| > log4j.filter.MySecondFilter.attribute2=value2
| >
| > which would be my first inclination....
| >
| > _______________________________
| > Scott Klein
| >
| > L-3 Communications
| > Telemetry-West
| > 9020 Balboa Avenue
| > San Diego, CA  92123-3507
| >
| > 858.694.7787
| > [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]>




*************************************************************************
Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. 
The information supplied in this email should be treated in confidence.
No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

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

Reply via email to