logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Wiedmann" <th...@gmx.de>
Subject Re: Setting properties for log4j.xml configuration file
Date Sun, 13 Mar 2011 09:25:44 GMT
Meanwhile I found the solution (for all, who'll might have the same question 
in future:) by defining an XML entity declaring the logfiles directory (or 
any other parameter, required, to be referenced in the log4j.xml) - Sample:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" [<!ENTITY log4j:logDir 

<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
   <appender name="fileout" 
     <param name="file" value="&log4j:logDir;/mytests.log"/>

Thomas Wiedmann

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message