SLF4J / SLF4J-575 [Open] Logback-classic 1.4.5 emits replayed events at the TRACE level
============================== Here's what changed in this issue in the last few minutes. This issue has been created This issue is now assigned to you. View or comment on issue using this link https://jira.qos.ch/browse/SLF4J-575 ============================== Issue created ------------------------------ Patrick Doyle created this issue on 10/Dec/22 6:56 PM Summary: Logback-classic 1.4.5 emits replayed events at the TRACE level Issue Type: Bug Assignee: SLF4J developers list Components: Unspecified Created: 10/Dec/22 6:56 PM Environment: Gradle 7.4.2 running JUnit 5 tests, using slf4j-api:2.0.5 and logback-classic:1.4.5 (versions confirmed via gradle dependencies). Priority: Major Reporter: Patrick Doyle External issue URL: https://github.com/qos-ch/logback/discussions/615 Description: When I run my junit tests (in gradle, using `./gradlew test`), I see this message, followed by thousands of log messages at the `TRACE` level: SLF4J: A number (20761) of logging calls during the initialization phase have been intercepted and are SLF4J: now being replayed. These are subject to the filtering rules of the underlying logging system. However, contrary to what this says, these events do not, in fact, seem to be subject to the filtering rules. I've written a `logback-test.xml` configured as follows, which should be ignoring all `TRACE` events, and this same configuration worked as expected in logback-classic 1.2.11. ``` <configuration> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d %-5level [%thread] %logger\{25}: %msg%n</pattern> </encoder> <immediateFlush>true</immediateFlush> </appender> <root level="WARN"> <appender-ref ref="CONSOLE" /> </root> </configuration> ``` The `appender` configuration is getting picked up correctly, which I confirmed by adding a recognizable prefix to the `pattern` tag. Also, the `appender-ref` tag is getting processed correctly, since all logs disappear if I set `ref="NONEXISTENT"`. ============================== This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59) _______________________________________________ slf4j-dev mailing list slf4j-dev@qos.ch https://mailman.qos.ch/cgi-bin/mailman/listinfo/slf4j-dev