Home » Tag Archives: slf4j

Tag Archives: slf4j

SLF4J Logging Levels Example

This post is about the various logging levels available in SLF4J and how to extend it with Marker interface. This post utilizes Logback as the logging implementation for our examples. 1. SLF4J Tutorial – Introduction Before jumping into SLF4J, we will take a short look at the reason for its existence. Logging is an important aspect of any application. It ...

Read More »

SLF4J Tutorial for Beginners

In this post, we feature a comprehensive SLF4J Tutorial in order to understand how it helps addresses the problem of logging in software world. 1. SLF4J Tutorial – Introduction Before jumping into SLF4J, we will take a short look at the reason for its existence. Logging is important aspect of any application. It can help troubleshoot common issues within our ...

Read More »

Slf4j Spring Boot Example

In this example, we are going to learn how to use SLF4J in Spring projects with an example of Spring Boot application. 1. Introduction 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. ...

Read More »

Jetty Logging Configuration Example

In this example, we will discuss logging capabilities of Jetty. We will first enable the logging module in Jetty and configure it afterwards. As in the previous Jetty examples, we will start with standalone Jetty; thereafter we will configure logging for Embedded Jetty server too. We are going to use Jetty v9.2.11 in this example, along with Java 8 (7 ...

Read More »

Logback File Appender Example

Operating under the assumption that you’ve stumbled onto this article because you’re a programmer and trying to solve a problem as painlessly as possible, I’m going to keep this direct and to the point. This post in no way delves completely into the mysteries of Logback, logging filters, or appenders – for that you’re going to have to read the ...

Read More »