Logback: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
* [[Spring_Boot_Concepts#Logging|Spring Boot Concepts]]
* [[Spring_Boot_Concepts#Logging|Spring Boot Concepts]]


=Example=
=logback.xml Example=


<syntaxhighlight lang='xml'>
{{Internal|logback.xml#Example|logback.xml}}
<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>
</syntaxhighlight>

Revision as of 17:12, 9 November 2018

External

Internal

logback.xml Example

logback.xml