java - How to use system environment variables in log4j.properties? -
i added system environment value project_home=c:\program files\project
now i'm trying use system environment value in log4j.properties didn't set
**log4j.properties** **log4j.appender.logfile.file="${env.project_home}"/project.log**
could please tell me how set system environment variables in log4j.properties?
using log4j-1.2.7 version
this supported environmentlookup in log4j - 2. see examples.
use ${sys:project_home}
instead of ${env.project_home}
Comments
Post a Comment