9 messages in org.apache.logging.log4j-userRe: ENVIRONNEMENT VARIABLE in log4j.p...
FromSent OnAttachments
Sebastian HoJun 1, 2004 12:33 am 
Jacob KjomeJun 1, 2004 6:06 am 
Jean Charles JabouilleJun 1, 2004 6:21 am 
Jacob KjomeJun 1, 2004 6:29 am 
Douglas WF AchesonJun 1, 2004 4:27 pm.xml
Sebastian HoJun 2, 2004 6:37 pm 
Douglas WF AchesonJun 3, 2004 5:02 pm 
Sebastian HoJun 3, 2004 11:20 pm 
praveenSep 2, 2005 9:40 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: ENVIRONNEMENT VARIABLE in log4j.propertiesActions...
From:Jacob Kjome (ho@visi.com)
Date:Jun 1, 2004 6:29:12 am
List:org.apache.logging.log4j-user

At 03:22 PM 6/1/2004 +0200, you wrote:

Hi,

I have a small question for Log4j community, how can I do to include an environnement variable into my log4j.properties

For exemple, I'd'like to use the $JONAS_BASE variable in order to set the path of my log file.

Set a system property at runtime and refer to it as ${JONAS_BASE}. Note that this does not correspond to an environment variable. It has to be set as a Java system property. You could do this...

java -DJONAS_BASE=/my/path/to/jonas DummyRunJonasClass

Jake

thanks for your answer.