Top "Slf4j" questions

Simple Logging Facade for Java (SLF4J) serves as a simple facade or abstraction layer for various logging frameworks.

Log4j 2.0 and SLF4J and the never ending future of java logging frameworks

So I just found out today that Log4J 2.0 is now actively being developed, there is an alpha version and …

java logging log4j slf4j logback
Is there a logging facade for the .NET world?

I'm somewhat new to the .NET stack and I was wondering if there is an equivalent to slf4j for …

c# .net logging slf4j
What's the overhead of creating a SLF4J loggers in static vs. non-static contexts?

I've always used the following pattern to construct (SLF4J) loggers: private static final Logger log = LoggerFactory.getLogger(MyClass.class); …

java logging static cdi slf4j
How to map levels of java.util.logging and SLF4J logger?

How do logging levels from java.util.logging map to SLF4J? SLF4J trace debug info warn error fatal …

java logging slf4j java.util.logging
Difference between slf4j-log4j12 vs log4j

In a project's pom.xml I am seeing a dependency like below <dependency> <groupId>org.slf4…

java log4j slf4j slf4j-api
Failed to instantiate SLF4J LoggerFactory

So, I'm working from this example BONECP: package javasampleapps; import java.sql.Connection; import java.sql.ResultSet; import java.sql.…

mysql jdbc slf4j bonecp
Testing Log Output Java Spring

I have a spring boot 2 application running on java 10 using SLF4J and logback as the underlying logger. Given the …

java junit logback slf4j spring-boot-test
How to make Jersey to use SLF4J instead of JUL?

I've found a useful article that explains how to make Jersey to use SLF4J instead of JUL. Now my …

java logging log4j jersey slf4j
How can I get complete stacktraces for exceptions thrown in tests when using sbt and testng?

The stacktraces are truncated - e.g. they end with [info] ... Using last or changing traceLevel doesn't help - it …

scala testng sbt scalatest slf4j
How to use MDC of logback and SLF4J with spring boot to capture unique tracking in the POST request json?

We are using: Spring Boot Slf4J Logback ELK stack Now we want to use MDC to add the unique …

logging spring-boot logback slf4j mdc