[slf4j-dev] [JIRA] (SLF4J-481) log4j-to-slf4j Null Throwable

QOS.CH (JIRA) noreply-jira at qos.ch
Thu Jan 2 21:36:00 CET 2020


Anton created SLF4J-481:
---------------------------

             Summary: log4j-to-slf4j Null Throwable
                 Key: SLF4J-481
                 URL: https://jira.qos.ch/browse/SLF4J-481
             Project: SLF4J
          Issue Type: Bug
         Environment: log4j-to-slf4j-2.11.1
            Reporter: Anton
            Assignee: SLF4J developers list
            Priority: Minor


In org.apache.logging.slf4j.SLF4JLogger.logMessage(...) Throwable t is passed to underlying SLF4J Logger implementation even if it is null, which causes the following method signature to apply, which is wrong:
{code:java}
Logger.trace(Marker marker, String format, Object arg1, Object arg2){code}
 

There should be a check in this method, if Throwable t argument is null, then call:
{code:java}
Logger.trace(Marker marker, String format, Object arg){code}
 



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


More information about the slf4j-dev mailing list