Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 734 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 734 Bytes

Dependencies (using logback)

  • org.slf4j:slf4j-api:2.0.16
  • ch.qos.logback:logback-classic:1.5.8

Sample slf4j configuration file

<configuration>

    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="ch.qos.logback.classic.PatternLayout">
            <Pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n</Pattern>
        </encoder>
    </appender>

    <logger name="com.example" level="debug" additivity="false">
        <appender-ref ref="CONSOLE"/>
    </logger>

    <logger name="ch.qos.logback" level="error">
        <appender-ref ref="CONSOLE"/>
    </logger>

    <root level="info">
        <appender-ref ref="CONSOLE"/>
    </root>

</configuration>