Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Update logback-test.xml example to show how to enable DEBUG only for Testcontainers #5976

Merged
merged 3 commits into from Oct 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.