The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Courses ▼▲
    • REST with Spring

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security ▼▲

      THE unique Spring Security education if you’re working with Java today

      • Learn Spring Security Core

        Focus on the Core of Spring Security 5

      • Learn Spring Security OAuth

        Focus on the new OAuth2 stack in Spring Security 5

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

  • Guides ▼▲
    • Persistence

      The Persistence with Spring guides

    • REST

      The guides on building REST APIs with Spring

    • Security

      The Spring Security guides

  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

Logging

Logging is critical to almost any application for troubleshooting issues. Learn about various logging libraries you can use with your Java application with the guides below.

  • Log4j2 (14)
  • Logback (9)
  • SLF4J (6)

>> Spring Boot Logback and Log4j2 Extensions

>> Lightweight Logging With tinylog 2

>> Quick Guide to Sentry

>> Log Properties in a Spring Boot Application

>> How to Log to the Console in Color

>> Log4j2 – Logging to Both File and Console

>> Enable Logging for Spring Security

>> Printing Thread Info in Log File Using Log4j2

>> Logging Queries with Spring Data Cassandra

>> Writing Log Data to Syslog Using Log4j2

>> Monitor the Consumer Lag in Apache Kafka

>> Mask Sensitive Data in Logs With Logback

>> Feign Logging Configuration

>> Log4j Warning: “No Appenders Could Be Found for Logger”

>> Writing an Enterprise-Grade AWS Lambda in Java

>> Log4j 2 Plugins

>> Log Groups in Spring Boot 2.1

>> Sending Emails with Logback

>> Various Logging Levels in Hibernate

>> Flogger Fluent Logging

>> Changing the Logging Level at the Runtime for a Spring Boot Application

>> Logging Spring WebClient Calls

>> Logging HTTP Requests with Spring Boot Actuator HTTP Tracing

>> @Timed Annotation Using Metrics and AspectJ

>> Spring Boot Embedded Tomcat Logs

>> SLF4J Warning: Class Path Contains Multiple SLF4J Bindings

>> How to Disable Console Logging in Spring Boot

>> Java 9 Platform Logging API

>> Creating a Custom Log4j2 Appender

>> Logging Exceptions Using SLF4J

>> Logging in Spring Boot

>> Programmatic Configuration with Log4j 2

>> A Guide To Logback

>> Show Hibernate/JPA SQL Statements from Spring Boot

>> Get Log Output in JSON

>> Creating a Custom Logback Appender

>> Send the Logs of a Java App to the Elastic Stack (ELK)

>> Log4j 2 and Lambda Expressions

>> Spring – Log Incoming Requests

>> JVM Log Forging

>> Intro to Log4j2 – Appenders, Layouts and Filters

>> Spring Cloud Sleuth in a Monolith Application

>> Spring Performance Logging

>> A Guide to Rolling File Appenders

>> Java Logging with Nested Diagnostic Context (NDC)

>> Improved Java Logging with Mapped Diagnostic Context (MDC)

>> Introduction to SLF4J

>> 3 Common Hibernate Performance Issues and How to Find Them in Your Log File

>> Introduction to Java Logging

  • ↑ Back to Top
res – REST with Spring (eBook) (everywhere)
opt-in
Building a REST API with Spring 5?
Download the E-book
The Baeldung logo

Courses

  • All Courses
  • All Bulk Courses
  • All Bulk Team Courses
  • The Courses Platform

Series

  • Java “Back to Basics” Tutorial
  • Jackson JSON Tutorial
  • Apache HttpClient Tutorial
  • REST with Spring Tutorial
  • Spring Persistence Tutorial
  • Security with Spring
  • Spring Reactive Tutorials

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Jobs
  • Our Partners
  • Partner with Baeldung
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo