[logback-user] Can LoggerContext take an MDCAdapter instead of a LogbackMDCAdapter

Ceki Gülcü ceki at qos.ch
Fri Jul 7 16:13:17 CEST 2023


Hi Jim,

Yes, I think using MDCAdapter interface should be OK.

Please create a jira issue  at jira.qos.ch asking for this change.

Best regards,

-- 
Ceki Gülcü

Sponsoring SLF4J/logback/reload4j at https://github.com/sponsors/qos-ch

On 7/7/2023 3:11 PM, Jim via logback-user wrote:
> 
> Hi,
> 
> At the moment LoggerContext works specifically with the LogbackMDCAdapter.
> 
> This makes it difficult to replace it with an alternative implementation
> (I'm working with Vertx, thread-local isn't much use for me).
> 
> Could LoggerContext work with the MDCAdapter interface instead?
> 
> Thanks
> 
> Jim


More information about the logback-user mailing list