How to know the real log framework using behind SLF4J
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
The Simple Logging Facade for Java (SLF4J) serves as a simple facade or abstraction for various logging frameworks (e.g. java.util.logging, logback, log4j) allowing the end user to plug in the desired logging framework at deployment time.
Given the source code
and the following pom.xml
How to know which logging framework is really used?
I see only artifactId slf4j-jobss-logging has no scope = compile, so in runtime, it should be using slf4j-jboss-logging?
But then I google and see JBoss Logging is also just a "logging bridge"
https://docs.jboss.org/hibernate/orm/4.3/topical/html/logging/Logging.html
And in this site has following
JBoss Logging understands the following back-ends as first-class citizens:
JBoss LogManager (mainly used only inside the WildFly app server)
Log4j 2
Log4j 1
Slf4j
JDK logging
And in my log, I see the logger class has more than one class as
"loggerClassName":"org.apache.commons.logging.impl.JBossLog"
"loggerClassName":"org.slf4j.impl.Slf4jLogger"
"loggerClassName":"io.undertow.UndertowLogger_$logger"
So what is the real logging implementation is using?
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Your target logger is the "provider" class you include, formerly known as the "binding".
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Took me a while to find that out.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
| Grow a forest with seedballs and this tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |











