The most commonly used spring logging pattern is:
clr means color. The following colors are supported:
- blue
- cyan
- faint
- green
When a file in the classpath has one of the following names, Spring Boot will automatically load it over the default configuration:
- logback-spring.xml
- logback.xml
- logback-spring.groovy
- logback.groovy
MDC:
We can create a filter which will generate a random UUID and can be passed in every request. This will help in tracking the flow
Sample logback-spring.xml file: