[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    Setting the log file path...
From:       "Mughal, Anas" <amughal () context ! com>
Date:       2001-10-31 21:47:45
[Download RAW message or body]

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:
<mailto:log4j-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:log4j-user-help@jakarta.apache.org>

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

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic