Skip to content

Commit

Permalink
Update docs about logging configuration (#5976)
Browse files Browse the repository at this point in the history
* Recommend disabling Apache HTTP client wire logging
* Recommend enabling debug logging only for org.testcontainers

Fixes #4913

Co-authored-by: Kevin Wittek <kiview@users.noreply.github.com>
  • Loading branch information
edysli and kiview committed Oct 5, 2022
1 parent 2de82d9 commit 478b049
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/supported_docker_environment/logging_config.md
Expand Up @@ -18,5 +18,14 @@ should be included in your classpath to show a reasonable level of log output:

<logger name="org.testcontainers" level="INFO"/>
<logger name="com.github.dockerjava" level="WARN"/>
<logger name="com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire" level="OFF"/>
</configuration>
```

In order to troubleshoot issues with Testcontainers, increase the logging level of `org.testcontainers` to `DEBUG`:

```xml
<logger name="org.testcontainers" level="DEBUG"/>
```

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 comments on commit 478b049

Please sign in to comment.