Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Slf4j2 + Logback1.3 支持 Biz日志配置隔离 #403

Closed
yuanyuancin opened this issue Dec 15, 2023 · 2 comments
Closed

Slf4j2 + Logback1.3 支持 Biz日志配置隔离 #403

yuanyuancin opened this issue Dec 15, 2023 · 2 comments
Labels

Comments

@yuanyuancin
Copy link
Collaborator

当前 支持多biz日志配置隔离的功能依赖 logback 原生 ContextSelector 机制 (com.alipay.sofa.ark.common.adapter.ArkLogbackContextSelector)

SpringBoot3 默认使用 Slf4j2 + Logback1.3.x 作为日志打印框架,Slf4j2 相较 Slf4j 弃用了 StaticLoggerBinder,改为了 Java SPI ServiceLoader 机制进行日志实现框架绑定,该机制不支持 ContextSelector 特性(ch.qos.logback.classic.spi.LogbackServiceProvider)

image

Copy link

This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue or help wanted) or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 15, 2024
@lvjing2
Copy link
Collaborator

lvjing2 commented Jan 17, 2024

已完成 #471

@lvjing2 lvjing2 closed this as completed Jan 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants