feat(logging): 调整不同环境的日志配置
- 移除 application-office.yaml 和 application-prod.yaml 中的 logging.file 配置 - 在 logback-spring.xml 中统一配置多环境日志输出 - 合并 dev,test,stage,default,prod,office 环境的日志 appender 引用 - 删除针对 prod 和 office 环境的独立日志级别配置 - 保留 gRPC 和异步日志输出方式 - 确保 com.jeelowcode 包在所有环境中使用 INFO 级别日志
This commit is contained in:
@@ -67,21 +67,12 @@
|
||||
</root>
|
||||
</springProfile>
|
||||
<!-- 其它环境 -->
|
||||
<springProfile name="dev,test,stage,default">
|
||||
<springProfile name="dev,test,stage,default,prod,office">
|
||||
<root level="INFO">
|
||||
<appender-ref ref="STDOUT"/>
|
||||
<appender-ref ref="ASYNC"/>
|
||||
<appender-ref ref="GRPC"/>
|
||||
</root>
|
||||
</springProfile>
|
||||
<!-- 单独对设备网环境、办公网环境进行配置 -->
|
||||
<springProfile name="prod,office">
|
||||
<root level="WARN">
|
||||
<appender-ref ref="ASYNC"/>
|
||||
<appender-ref ref="GRPC"/>
|
||||
</root>
|
||||
<!-- 特定业务包使用INFO级别 -->
|
||||
<logger name="com.jeelowcode" level="INFO"/>
|
||||
</springProfile>
|
||||
|
||||
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user