config(gateway): 配置中心和日志配置外置到Nacos
- 添加Nacos配置中心依赖并启用配置导入功能 - 将网关日志配置外置到Nacos gateway-server.yaml文件 - 将业务模块日志文件路径配置外置到Nacos rdms-common.yaml - 在pom.xml中设置addResources为false避免占位符不被替换 - 添加logback-spring.xml配置文件用于日志格式化和滚动策略 - 优化日志配置管理方式,实现按环境统一配置
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
<appender-ref ref="FILE"/>
|
||||
</appender>
|
||||
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="STDOUT"/>
|
||||
<!-- 本地环境下,如果不想【FILE】打印日志,可以注释掉本行 -->
|
||||
|
||||
Reference in New Issue
Block a user