Skip to content

Commit

Permalink
Recommend enabling debug logging only for org.testcontainers
Browse files Browse the repository at this point in the history
Add an example showing how to enable debug logging only for the
`org.testcontainers` package. Recommend against enabling debug level
on the root logger in order to not be swamped by log data.

Fixes testcontainers#4913
  • Loading branch information
edysli committed Oct 4, 2022
1 parent 71bad7d commit 7c358ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/supported_docker_environment/logging_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ should be included in your classpath to show a reasonable level of log output:
<logger name="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 7c358ac

Please sign in to comment.