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

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

Description

@yuanyuancin

当前 支持多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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions