Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch 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
16 views



Related Hot Questions



Government Jobs Opening


...