Hello
I have a question on the separation of log4j configuration file.
As in a web application, I try to assemble all the customer changeable
properties (for example the log file location) into one file -
customer.properties.
The customer can decide where to log file can be placed, by changing
customer.properties. maybe he will be confused by looking at the log4j.xml
file. That's why I want to separate the log4j.xml into two or more files.
It's easy to separate log4j.properties, as there's a method
<file:///I:\developer\jakarta-log4j-1.2.8\docs\api\org\apache\log4j\Property
Configurator.html#PropertyConfigurator()> PropertyConfigurator.
<file:///I:\developer\jakarta-log4j-1.2.8\docs\api\org\apache\log4j\Property
Configurator.html#configure(java.util.Properties)> configure(
<http://java.sun.com/products/jdk/1.3/docs/api/java/util/Properties.html>
Properties properties) to load all the properties.
But now I want to transform to log4j.xml, to enjoy the convenience of XML
configuration (FILTER and more).
I have an idea of converting the customer.properties to customer.xml.
But is there a way of keeping the file location in customer.properties(said
above), and integrate the other part of log4j.xml?
Xi Yuxiang
System Architect
Maveo Systems Limited - www.maveosystems.com