SpringBoot项目log4j2.xml配置放到apollo是否支持? #4245
Unanswered
hongkuan45
asked this question in
Q&A
Replies: 1 comment 8 replies
-
We had supported this feature in our company. Usage1) maven dependency if someone want to manage log4j2.xml in apollo, they should add this dependency: <dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-log4j2</artifactId>
</dependency> 2) create log4j2.xml namespace 3) enable this feature by system properties
If anyone wants this feature, please comment on this issue. I think I could create a PR for this, we have already used this feature at least a year. @nobodyiam I create an |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
期望的用法是,在apollo创建一个namaspace (比如命名为log4j2.xml)。
启动项目指定apollo的log4j2.xml为日志配置文件。
以此做到在线化log配置。
此文做了自定义开发实现了相同的目的。想了解有没有更原生的方式。
https://blog.csdn.net/xiaokuanblog/article/details/123114628
Beta Was this translation helpful? Give feedback.
All reactions