hello friends,   
                 I am working on log4j for getting my log files.

my Environment variable in windows.
Variable Name : CATALINA_HOME
Variable Value : D:\MQS\jboss As\Tomcat 5.0
I tried with "Variable Value" in my log4j.xml by hardcoding as below
eg: ""

It is creating log file perfectly. But if i give like ${catalina.home} i am
not getting the output. I was badly struck, can you plz show me some way.


my log4j.xml is as below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" >
<log4j:configuration>
<appender name="debugfile" class="org.apache.log4j.RollingFileAppender">
<paramname="maxFileSize" value="100KB" />
<paramname="maxBackupIndex" value="5" />
<paramname="File" value="*${catalina.home}/Dbg/debug.log*" />
<layout class="org.apache.log4j.PatternLayout">
<paramname="ConversionPattern" value="%d{ABSOLUTE} %5p %c{1}:%L - %m%n" />
</layout>
<filter class="org.apache.log4j.varia.LevelRangeFilter">
<paramname="LevelMin" value="debug" />
<paramname="LevelMax" value="debug" />
</filter>
</appender>
<root>
<priority value="debug"></priority>
<appender-ref ref="debugfile" />
</root>
</log4j:configuration>



any kind of help is appreciated,
Ajay.

-- 
View this message in context: 
http://www.nabble.com/log4j-is-not-identifying-%24%7Bcatalina.home%7D...%21-tp16087105p16087105.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


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

Reply via email to