Logback: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* [[Java#Logging|Java]] | * [[Java#Logging|Java]] | ||
* [[Spring_Boot_Concepts#Logging|Spring Boot Concepts]] | |||
=Example= | =Example= |
Revision as of 16:46, 9 November 2018
External
Internal
Example
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n </pattern>
</encoder>
</appender>
<logger name="root" level="INFO"/> <root level="INFO">
<appender-ref ref="STDOUT" /> </root>
</configuration>