Spring Boot的extern log4.properties文件 [英] Extern log4.properties file with Spring Boot
本文介绍了Spring Boot的extern log4.properties文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用可执行jar运行我的应用程序.
I am running my app with executable jar.
我在/resources文件夹中有log4j.properties
I have log4j.properties inside /resources folder
在产品中,我想覆盖它并将其放在外部目录中
In prod I would like to override it and have it within external dir
如何使用Spring-Boot做到这一点?
How I could do that using Spring-Boot?
推荐答案
-Dlogging.config=/path/to/log4j.properties
http://docs.spring. io/spring-boot/docs/current/reference/html/howto-logging.html
这篇关于Spring Boot的extern log4.properties文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文