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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -