Skip to content

Instantly share code, notes, and snippets.

@joserbatista
Created July 20, 2022 10:25
Show Gist options
  • Save joserbatista/3cbbedb3bb3c5f72fdc5ce0d27e71117 to your computer and use it in GitHub Desktop.
Save joserbatista/3cbbedb3bb3c5f72fdc5ce0d27e71117 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<charset>UTF-8</charset>
<pattern>%highlight(%d{ISO8601} %-5level) %yellow(%-40.40logger{39}) %highlight(->) %msg [%cyan(%M)]%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}
</pattern>
</encoder>
</appender>
<!-- ROOT LOGGERS -->
<!-- LOG everything at INFO level -->
<root level="INFO">
<appender-ref ref="CONSOLE"/>
</root>
<!-- CUSTOM LOGGERS -->
<logger name="pt.joserbatista" level="TRACE"/>
<logger name="org.springframework.web" level="DEBUG"/>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment