[slf4j-dev] [JIRA] Updates for SLF4J-592: Programmatically specify fallback provider for unit tests.
slf4j developers list
slf4j-dev at qos.ch
Wed Jun 21 18:57:00 CEST 2023
SLF4J / SLF4J-592 [Open]
Programmatically specify fallback provider for unit tests.
==============================
Here's what changed in this issue in the last few minutes.
There is 1 comment.
View or comment on issue using this link
https://jira.qos.ch/browse/SLF4J-592
==============================
1 comment
------------------------------
Ceki Gülcü on 21/Jun/23 18:45
[~garretwilson] Thank you for your insightful comments.
Logback version 1.4.9 (unreleased as of yet) introduces a sorting mechanism for configurators. Configurators which as the name suggests configures logback can be specified under META-INF/services/ch.qos.logback.classic.spi.Configurator.
You can have multiple instances of Configurated which can be ordered and also chained.
I imagine that a similar sorting/ordering mechanism can be introduced for SLF4JProviders (but without chaining providers).
A test provider can have higher priority than the production provider. However, your requirement seems a bit more complicated. Let me read again.
==============================
This message was sent by Atlassian Jira (v9.6.0#960000-sha1:a3ee8af)
More information about the slf4j-dev
mailing list