OK,

I still get the same error, perhaps the error is in how i am using the
entity, though i have tried with/without quotes, brace bracets, etc. This is
what i have done:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration [<!ENTITY logpath
"/home/stan/logfiles/presenceClient.txt">]> 
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";> 

    <appender name="presenceClientFileAppender"
class="org.apache.log4j.RollingFileAppender">
        
       
        
        
        
       <layout class="org.apache.log4j.PatternLayout"> 
             
        </layout>
    </appender>



stan.forums wrote:
> 
> Hi all,
> 
> I wish to declare a local variable inside my xml configuration file, and
> then later on i wish to access that variable. The reason being that i
> declare many appenders in one config file. When i wish to change the path
> to the log file in the appender, idon't want to have to edit each appender
> separately, i would like to have a declared logpath variable at the top of
> the config file and then just have to edit that one variable definition
> and then all of the appenders will have the correct new path
> automagically.
> 
> thanks
> 

-- 
View this message in context: 
http://old.nabble.com/Local-variable-in-XML-configuration-file-tp30454810p30496956.html
Sent from the Log4cxx - Users mailing list archive at Nabble.com.

Reply via email to