Spring Boot Logback

Logback is a logging framework wheter console or file, is nowadays the best option for logging your Spring Boot application. Here you can find more information about it. This time I will show you how to configure Logback. First you need to add logback dependencies into your build.gradle file. compile "ch.qos.logback:logback-classic:1.2.1" compile "ch.qos.logback:logback-core:1.2.1" Then under ${PROJECT_HOME}/src/main/resources create this logback.groovy file: import ch.qos.logback.core.ConsoleAppender import ch.qos.logback.core.rolling.RollingFileAppender import ch.qos.logback.classic.encoder.PatternLayoutEncoder import static ch.qos.logback.classic.Level.DEBUG import static ch. [Read More]