πŸƒ Spring Boot

Spring Boot Logging & Monitoring

12 lessons in this section of the Spring Boot tutorial. Work through them in order, or jump to the one you need.

  1. 1.Logging Basics

    Spring Boot configures logging automatically through spring-boot-starter-logging, which bundles Logback as the default implementation behind the SLF4J facade.

  2. 2.SLF4J

    SLF4J (Simple Logging Facade for Java) is the logging abstraction that Spring Boot uses throughout its codebase.

  3. 3.Logback

    Logback is Spring Boot's default logging backend, and for many apps a few application.yml properties are all the configuration you need.

  4. 4.Log4j2

    Log4j2 is a high-performance logging implementation that can replace Logback in Spring Boot.

  5. 5.Custom Logging

    Extend Spring Boot logging the safe way: AOP method logging, correlation IDs, HTTP request logging, a non-blocking custom Logback appender, metrics from logs, and audit…

  6. 6.Spring Boot Actuator

    Spring Boot Actuator adds production-ready management endpoints to any Spring Boot application.

  7. 7.Health Checks

    Health checks report whether a service is capable of handling requests.

  8. 8.Metrics Monitoring

    Metrics are cheap, aggregated numbers (request rates, latency distributions, pool usage, business counters) that tell you when something is wrong and roughly where.

  9. 9.Prometheus Integration

    Prometheus is a pull-based time-series metrics database.

  10. 10.Grafana Integration

    Grafana is the visualisation layer for Prometheus metrics.

  11. 11.Distributed Logging

    Distributed logging in Spring Boot: trace IDs, Micrometer Tracing, OpenTelemetry, correlation IDs, Kafka and async propagation, with config for Boot 3 and 4.

  12. 12.ELK Stack

    The ELK Stack β€” Elasticsearch, Logstash, and Kibana β€” is the most widely used log aggregation and search platform for microservices.