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.Logging Basics
Spring Boot configures logging automatically through spring-boot-starter-logging, which bundles Logback as the default implementation behind the SLF4J facade.
- 2.SLF4J
SLF4J (Simple Logging Facade for Java) is the logging abstraction that Spring Boot uses throughout its codebase.
- 3.Logback
Logback is Spring Boot's default logging implementation.
- 4.Log4j2
Log4j2 is a high-performance logging implementation that can replace Logback in Spring Boot.
- 5.Custom Logging
Custom logging extends the standard logging infrastructure to meet application-specific needs β AOP-based method logging, request/response logging, custom appendersβ¦
- 6.Spring Boot Actuator
Spring Boot Actuator adds production-ready management endpoints to any Spring Boot application.
- 7.Health Checks
Health checks report whether a service is capable of handling requests.
- 8.Metrics Monitoring
Metrics are numerical measurements collected over time β request counts, latencies, error rates, JVM heap usage, database pool sizes, and custom business counters.
- 9.Prometheus Integration
Prometheus is a pull-based time-series metrics database.
- 10.Grafana Integration
Grafana is the visualisation layer for Prometheus metrics.
- 11.Distributed Logging
Distributed logging connects log entries across multiple microservices into a single traceable request flow.
- 12.ELK Stack
The ELK Stack β Elasticsearch, Logstash, and Kibana β is the most widely used log aggregation and search platform for microservices.