[slf4j-dev] [JIRA] (SLF4J-378) Allow manual override of StaticLoggerBinder in LoggerFactory

QOS.CH (JIRA) noreply-jira at qos.ch
Sun Apr 9 10:01:00 CEST 2017


    [ https://jira.qos.ch/browse/SLF4J-378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18670#comment-18670 ] 

yair ogen commented on SLF4J-378:
---------------------------------

I second this. Is anyone working on this?

> Allow manual override of StaticLoggerBinder in LoggerFactory
> ------------------------------------------------------------
>
>                 Key: SLF4J-378
>                 URL: https://jira.qos.ch/browse/SLF4J-378
>             Project: SLF4J
>          Issue Type: Improvement
>          Components: Core API
>            Reporter: Boleslav Bobcik
>            Assignee: SLF4J developers list
>            Priority: Minor
>
> For certain environments (unit tests in my case) it is desirable to set a fixed logging backend despite other binders being present. Therefore I propose to amend LoggerFactory to contain an optional reference to StaticLoggerBinder instance, which (when non-null) would be used instead of normal StaticLoggerBinder.getSingleton(); therefore this overriding instance could reside in different package. It would suppress checks for multiple binders as well.



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the slf4j-dev mailing list