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

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -