Logback

Starter spring-boot-starter-logging is all that you need to use the Logback framework. This dependency is the default logging included in most of the starters, including spring-boot-starter-web. The dependency is shown as follows:

    <dependency>      <groupId>org.springframework.boot</groupId>      <artifactId>spring-boot-starter-logging</artifactId>    </dependency>

The following snippet shows logback and related dependencies included in spring-boot-starter-logging:

    <dependency>      <groupId>ch.qos.logback</groupId>      <artifactId>logback-classic</artifactId>    </dependency>    <dependency>      <groupId>org.slf4j</groupId>      <artifactId>jcl-over-slf4j</artifactId>    </dependency>    <dependency>      <groupId>org.slf4j</groupId>      <artifactId>jul-to-slf4j</artifactId> </dependency> ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.