Skip to content

Commit 478b049

Browse files
edyslikiview
andauthored
Update docs about logging configuration (#5976)
* Recommend disabling Apache HTTP client wire logging * Recommend enabling debug logging only for org.testcontainers Fixes #4913 Co-authored-by: Kevin Wittek <[email protected]>
1 parent 2de82d9 commit 478b049

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/supported_docker_environment/logging_config.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,14 @@ should be included in your classpath to show a reasonable level of log output:
1818

1919
<logger name="org.testcontainers" level="INFO"/>
2020
<logger name="com.github.dockerjava" level="WARN"/>
21+
<logger name="com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire" level="OFF"/>
2122
</configuration>
2223
```
24+
25+
In order to troubleshoot issues with Testcontainers, increase the logging level of `org.testcontainers` to `DEBUG`:
26+
27+
```xml
28+
<logger name="org.testcontainers" level="DEBUG"/>
29+
```
30+
31+
Avoid changing the root logger's level to `DEBUG`, because this turns on debug logging for every package whose level isn't explicitly configured here, resulting in a large amount of log data.

0 commit comments

Comments
 (0)