Re: Adding a Filter to an Appender in a Properties File Configuration
Posted By:
Andrew_Jans
Posted On:
Monday, November 18, 2002 12:42 PM
Well, I found a compromise, you can actually use both Configurators. So the Property File configurator can setup basic options using the Properties Configurator (I load these from a Properties File in the JAR), and then, if an XML file location is specified in the local properties (my app takes a system property that specifies the file to load), the DOM Configurator is used. It works like a charm, guarantees that I have basic logging covered and allows the system admin to setup complex logging if they want to do so.
Re: Adding a Filter to an Appender in a Properties File Configuration
Posted By:
Adrien_Meaudre
Posted On:
Thursday, November 14, 2002 02:50 PM
The filter feature is only available with the DOMConfigurator (unavailable with the PropertyConfigurator).
So you must modify your code replacing PropertyConfigurator with DOMConfigurator and rewrite your configuration file under XML.
Hope this could help.