logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msg2ajay <msg2a...@gmail.com>
Subject log4j is not identifying ${catalina.home}...!
Date Mon, 17 Mar 2008 02:03:54 GMT

hello friends,   
                 I am working on log4j for getting my log files.
note:I dont know why Nabble is not printing tag  so i joined like
<paramname> plz note them


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: "<paramname="File" value="D:\MQS\jboss As\Tomcat 5.0" />"

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" >
<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" />
<filter class="org.apache.log4j.varia.LevelRangeFilter">
<paramname="LevelMin" value="debug" />
<paramname="LevelMax" value="debug" />
<priority value="debug"></priority>
<appender-ref ref="debugfile" />

any kind of help is appreciated,

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

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

View raw message