File tree 3 files changed +22
-2
lines changed 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ kotlin {
228
228
implementation(" org.testcontainers:junit-jupiter:1.19.7" )
229
229
implementation(" org.junit.jupiter:junit-jupiter-api:5.10.2" )
230
230
runtimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.10.2" )
231
+ implementation(" ch.qos.logback:logback-classic:1.2.13" )
231
232
}
232
233
}
233
234
}
Original file line number Diff line number Diff line change @@ -9,10 +9,13 @@ import org.testcontainers.junit.jupiter.Container
9
9
import org.testcontainers.junit.jupiter.Testcontainers
10
10
import java.nio.file.Paths
11
11
import org.junit.jupiter.api.Test
12
+ import org.slf4j.LoggerFactory
12
13
13
14
@Testcontainers
14
15
class TimeZoneTest {
15
16
17
+ private val logger = LoggerFactory .getLogger(javaClass)
18
+
16
19
@Container
17
20
val originalContainer = TimezoneTestContainer (
18
21
Paths .get(" ./jvm/test/testcontainers/original/Dockerfile" ),
@@ -29,7 +32,7 @@ class TimeZoneTest {
29
32
fun test () {
30
33
val originalExecResult = originalContainer.runTest()
31
34
val modifiedExecResult = modifiedContainer.runTest()
32
- println ( originalExecResult.stdout)
33
- println ( modifiedExecResult.stdout)
35
+ logger.info( " Original container stdout: ${ originalExecResult.stdout} " )
36
+ logger.info( " Modified container stdout: ${ modifiedExecResult.stdout} " )
34
37
}
35
38
}
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <configuration >
3
+ <appender name =" CONSOLE" class =" ch.qos.logback.core.ConsoleAppender" >
4
+ <encoder >
5
+ <pattern >%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern >
6
+ </encoder >
7
+ </appender >
8
+
9
+ <logger name =" org.testcontainers" level =" INFO" />
10
+ <logger name =" com.github.dockerjava" level =" WARN" />
11
+ <logger name =" testcontainers" level =" DEBUG" />
12
+
13
+ <root level =" INFO" >
14
+ <appender-ref ref =" CONSOLE" />
15
+ </root >
16
+ </configuration >
You can’t perform that action at this time.
0 commit comments