logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rishikesh Tembe" <rishi_lea...@eml.cc>
Subject Re: dumb newbie question?
Date Wed, 01 Oct 2003 18:16:18 GMT
First off, I am under Windows2000. Is what you have said
platform-independent?

I have system variable CATALINA_HOME=C:\Tomcat4.1
In log4j.properties, I specify
log4j.appender.LOGMSGS.File=${CATALINA_HOME}/webapps/myapp/WEB-INF/log/messages.log
What I get is a FileNotFoundException:
\webapps\myapp\WEB-INF\log\messages.log

I tried with %CATALINA_HOME% instead of ${CATALINA_HOME}, and I still get
the same exception...

-Rishi

> You can use variable substitution.
> 
> Assuming catalina.home is a system property, then you can specify the
> path as
> 
>    ${catalina.home}/webapps/myapp/WEB-INF/log
> 
> Just to make sure to use the right variable name.

-- 
  Rishikesh Tembe
  rishi_learns@eml.cc

-- 
http://www.fastmail.fm - Sent 0.000002 seconds ago

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


Mime
View raw message