Top "Logback" questions

Modern logging facility for Java-based programs with many new features when compared to Log4J and java.

Log4j vs Logback: concurrent writing to same log?

I have several web applications running on the same tomcat. I have two questions: 1- By searching, I understood that …

java web-applications logging log4j logback
Force slf4j to use logback

Is there anyway to force slf4j to use specific logging provider (logback in my case)? As in their docs: …

logging log4j slf4j logback
Turn off logback logging for other libraries while in certain class

I am successfully using Spring's @Scheduled annotation to execute a method every few seconds. The only issue is that I …

java spring logging scheduled-tasks logback
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
How can I determine what log configuration source Logback actually used?

log4j has a property, log4j.debug, which will helpfully provide the user with an indication of which configuration …

java logback
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
Centralised Java Logging

I'm looking for a way to centralise the logging concerns of distributed software (written in Java) which would be quite …

java logging log4j distributed-computing logback
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
Logging different level for a specific class using logback?

Can I override a logging level for a specific class only using logback.xml? i.e everything remains in INFO, …

debugging logging logback
Getting "ArrayIndexOutOfBoundsException: null" with NO stack trace

In our log files we find the following: [2012-09-24 00:09:32.590 +0000UTC] ERROR host server1 [] [] somepackage.someclass [] [Unknown] [V3rAqPaDvvAAAAExEXhdWGyh] [pjsQwTGHzxcAAAE5…

java logging logback stack-trace bytecode