Skip to content

Commit 1ce1cdb

Browse files
committed
Add logging lib to classpath in test scope
This lets us take advantage of log messages while running tests. Setting level to warning, so they won't be noisy by default.
1 parent 67ac0ae commit 1ce1cdb

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@
159159
<version>1.3</version>
160160
<scope>test</scope>
161161
</dependency>
162+
<dependency>
163+
<groupId>com.spotify</groupId>
164+
<artifactId>logging</artifactId>
165+
<version>2.1.0</version>
166+
<scope>test</scope>
167+
</dependency>
162168
</dependencies>
163169

164170
<build>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<configuration>
2+
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<!-- encoders are assigned the type
5+
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
6+
<encoder>
7+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
8+
</encoder>
9+
</appender>
10+
11+
<root level="warn">
12+
<appender-ref ref="STDOUT" />
13+
</root>
14+
15+
</configuration>

0 commit comments

Comments
 (0)