Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


using system environment variables in log4j xml configuration using -'java,xml,configuration,log4j,environment-variables'


using system environment variables in log4j xml configuration  using -'java,xml,configuration,log4j,environment-variables'

Is it possible to reference system environment variables (as opposed to Java system properties) in a log4j xml configuration file?

I'd like to be able to do something like:

<level value="${env.LOG_LEVEL}" />


and have it get that from the system environment variables, so I can avoid having to pass in so many things with -D parameters.
    

asked Sep 7, 2015 by rajesh
0 votes
14 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...