[slf4j-dev] [JIRA] (SLF4J-445) Skip SubstituteLogger from caller data (slf4j-jdk14)

QOS.CH (JIRA) noreply-jira at qos.ch
Tue Feb 19 23:55:00 CET 2019


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

Guillaume Grossetie commented on SLF4J-445:
-------------------------------------------

Awesome thanks @ceki

> Skip SubstituteLogger from caller data (slf4j-jdk14)
> ----------------------------------------------------
>
>                 Key: SLF4J-445
>                 URL: https://jira.qos.ch/browse/SLF4J-445
>             Project: SLF4J
>          Issue Type: Bug
>          Components: Implementations
>    Affects Versions: 1.7.25
>         Environment: Slf4j-jdk14 binding
>            Reporter: Alexander Yevsyukov
>            Assignee: Ceki Gülcü
>              Labels: consoleoutput, substitution
>             Fix For: 1.8.0-beta5
>
>
> When using \{\{SubstituteLogger}} with \{\{JDK14LoggerAdapter}} (obtained regularly via \{\{LoggerFactory}}) the output always gives \{\{SubstituteLogger}} as the caller. A programmer would be interested in the class/method of his code.
> The issue is that \{\{JDK14LoggerAdapter.fillCallerData()}} does not take into account that \{\{SubstituteLogger}} can be the direct caller, and it is needed to go one level deeper.
> This issue is similar to [one reported to LogBack|https://jira.qos.ch/browse/LOGBACK-1100].



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


More information about the slf4j-dev mailing list