Logback: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:


* [[Java#Logging|Java]]
* [[Java#Logging|Java]]
* [[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">
=Subjects=
    <encoder>
 
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n </pattern>
* [[Logback Concepts|Concepts]]
    </encoder>
* [[Logback Configuration|Configuration]]
  </appender>
  <logger name="root" level="INFO"/> <root level="INFO">
  <appender-ref ref="STDOUT" /> </root>
</configuration>
</syntaxhighlight>

Latest revision as of 21:43, 20 December 2018