Skip to content

Commit

Permalink
Add logback-test.xml and make sure SLF4J 2 is used in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Dec 23, 2024
1 parent f4bc673 commit 7aa6895
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions encoder-brave/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
<artifactId>armeria-junit5</artifactId>
<version>${armeria.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
Expand Down
13 changes: 13 additions & 0 deletions encoder-brave/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%-30thread] %-5level %-48logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
<logger name="zipkin2" level="DEBUG"/>
</configuration>

0 comments on commit 7aa6895

Please sign in to comment.