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
Post a Comment