最新消息:

log4j 通过文件传入配置

log4j admin 5243浏览 0评论

The solution is using of the following JVM argument:

-Dlog4j.configuration={path tofile}

If the file is NOT in the classpath (in WEB-INF/classes in case of Tomcat) but somewhere on you disk, use file:, like、

-Dlog4j.configuration=file:C:Usersmelog4j.xml

More information and examples here: http://logging.apache.org/log4j/1.2/manual.html

 

转载请注明:爱开源 » log4j 通过文件传入配置

与本文相关的文章

  • 暂无相关文章!

您必须 登录 才能发表评论!