[slf4j-dev] [JIRA] (SLF4J-445) Skip SubstituteLogger from caller data (slf4j-jdk14)
QOS.CH (JIRA)
noreply-jira at qos.ch
Tue Sep 25 18:57:00 CEST 2018
Alexander Yevsyukov created SLF4J-445:
-----------------------------------------
Summary: 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: SLF4J developers list
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