java - Log4j.xml dynamic file attributes -


i deploying application in websphere server , want set param file attribute of log4j.xml. locally doing like

<param name="file" value="c:\\logs\\cle_error.log" /> 

my server name app_admin , path want generate debug.log file /waslib/appadmin/uat/logs.

you use system property like:

<param name="file" value="${mylog.path}" /> 

and when start application, pass system property like:

java -dmylog.path="/waslib/appadmin/uat/logs" ... 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -