| Author |
configuring log4j using env variables
|
Harjit Singh
Ranch Hand
Joined: Feb 01, 2007
Posts: 77
|
|
Hi there, Is there any way to configure the log4j file using environement variables. We don't want to hard code the path in the log4j configuration file. Thanks - Harjit
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8262
|
|
I'm not aware of any functionality to do so in the Log4j API. You can programmatically configure Log4j as described in the manual (scroll down to "configuration"). There's no reason you couldn't read environment variables to get those settings.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
 |
|
|
subject: configuring log4j using env variables
|
|
|