Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
langxml
titleSample logback.xml file
borderStylesolid
<configuration>
  <appender name="FILE">
    <file>/tmp/logfile.log</file>
    <append>true</append>
&nbsp;&nbsp;&nbsp; <\!-\- encoders are assigned the type
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ch.qos.logback.classic.encoder.PatternLayoutEncoder by default \-->
&nbsp;&nbsp;&nbsp; <encoder>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <pattern>%d<encoder>
        <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} \[%thread\] %-5level %logger{36} - %msg%n</pattern>
&nbsp;&nbsp;&nbsp;
      </encoder>
 &nbsp; </appender>

&nbsp;  <root level="INFO">
&nbsp;&nbsp;&nbsp;
    <appender-ref ref="FILE" />
&nbsp;  </root>

 &nbsp; <logger name="org.bitrepository" level="DEBUG" />
</configuration>

...