Can LoggerContext take an MDCAdapter instead of a LogbackMDCAdapter

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

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
participants (2)
-
Ceki Gülcü
-
jim-logback@spudsoft.co.uk