Environment variable in a logfile path?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Christian_Hacker
Posted On:   Monday, March 17, 2003 03:02 AM

Hi,



in the lcf-configuration file a logfile must be defined using an absolute path. The following example shows how this can be done:

log4j.appender.MyFileAppender.File=c:/log/myApp.log



I don't want to set an absolute path. Is it possible to use an environment variable as part of the path to be more flexible?

I have something like the following in mind:

log4j.appender.MyFileAppender.File=$USERHOME$/log/myApp.log



Thanks and greetings,

Chris

About | Sitemap | Contact