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 "Mughal, Anas" <am...@context.com> on 2001/10/31 22:47:45 UTC
Setting the log file path...
That sounds like a good idea.
Would you have any sample code?
Would anybody recommend anything that worked for them.
I would really like to try something that is currently working for somebody.
Thank you all in advance.
--
anas mughal
-----Original Message-----
From: Yoav Shapira
Sent: Tuesday, October 30, 2001 12:53 PM
To: Log4J Users List
Subject: Re: xml configuration file example
Howdy,
What about either setting it programatically, maybe from an init
servlet or via init-param (or context-param type stuff, if using
tomcat) ?
Yoav
"Mughal, Anas" wrote:
>
> I need to use an enviroment variable for the path to the log file
location.
> So, in a confirguration file, I would like to have something like
>
> log4j.appender.debug.File=$LOGFILES/debug.log
>
> Where $LOGFILES would point to the location of the log file.
> I need to make this work on UNIX (Solaris).
>
> Thank you for your help.
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>