You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Rishikesh Tembe <ri...@eml.cc> on 2003/10/01 19:39:00 UTC
dumb newbie question?
Hi group,
Is there a way I can specify an absolute path for the File for the
DailyRollingFileAppender in my log4j.properties?
I want my log files to be located in the
CATALINA_HOME/webapps/myapp/WEB-INF/log directory. How can I specify this
destination without tying it down to the actual location of Tomcat?
I have tried various options but none seem to work.
thanks,
Rishi
--
Rishikesh Tembe
rishi_learns@eml.cc
--
http://www.fastmail.fm - Access your email from home and the web
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org
Re: dumb newbie question?
Posted by Ceki Gülcü <ce...@qos.ch>.
There is no such thing as a dumb question. See also below.
At 09:39 AM 10/1/2003 -0800, Rishikesh Tembe wrote:
>Hi group,
>
>Is there a way I can specify an absolute path for the File for the
>DailyRollingFileAppender in my log4j.properties?
>I want my log files to be located in the
>CATALINA_HOME/webapps/myapp/WEB-INF/log directory. How can I specify this
>destination without tying it down to the actual location of Tomcat?
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.
>I have tried various options but none seem to work.
>
>thanks,
>Rishi
>--
--
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