Top "Logback" questions

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

logback: Two appenders, multiple loggers, different levels

I want to have two log files in my application (Spring Integration), debug.log and main.log. I want to …

java logging logback
Programmatically configure LogBack appender

I have a logback appender defined in the logback.xml, it's a DB appender, but I'm curious if there is …

java spring javabeans logback
Why calling LoggerFactory.getLogger(...) every time is not recommended?

I've read tons of posts and documents (on this site and elsewhere) pointing that the recommended pattern for SFL4J …

java logging log4j logback slf4j
Why not use java.util.logging?

For the first time in my life I find myself in a position where I'm writing a Java API that …

java logging slf4j logback
How to intercept SLF4J (with logback) logging via a JUnit test?

Is it possible to somehow intercept the logging (SLF4J + logback) and get an InputStream (or something else that is …

java junit slf4j logback
Exception thrown while using logback/slf4j

I am using slf4j 1.6.2 api jar (tried using 1.6.1 as well) - logback version is 0.9.29 (core & classic). I am …

java slf4j logback
-Dlogback.configurationFile=logback.xml ignored when running Spring-Boot

We have a spring-boot 1.0.RC1 application, with logback configured for logging and a logback.xml file in src/test/resources. …

spring logback spring-boot
What are markers in Java Logging frameworks and what is a reason to use them?

First time I hear about markers when read: http://slf4j.org/faq.html I check available methods for Logger …

java logging log4j slf4j logback
How to use MDC with thread pools?

In our software we extensively use MDC to track things like session IDs and user names for web requests. This …

java logging slf4j logback mdc
Best practices for using Markers in SLF4J/Logback

We are using SLF4J+Logback combination at our project for a while now and are quite happy with it, …

java logging slf4j logback markers