logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: dumb newbie question?
Date Wed, 01 Oct 2003 18:25:56 GMT

Not environment variables, system properties!

System properties are Java specific.

Try ${catalina.home}/...

At 10:16 AM 10/1/2003 -0800, you wrote:
>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

-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp

      import org.apache.Facetime;
      ApacheCon US 2003, 18-21 November http://apachecon.com/



---------------------------------------------------------------------
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