Skip to content

Is there a way to add container logs to TestContainer logs #1211

Answered by HofmeisterAn
paulomorgado asked this question in Q&A
Discussion options

You must be logged in to vote

You need to inject a logger that uses xUnit.net's ITestOutputHelper or IMessageSink. Testcontainers' default logger will simply forward the output to the console. Depending on the test framework, more configurations may be necessary (such as with xUnit.net). See also the related PR: #1165.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HofmeisterAn
Comment options

Answer selected by paulomorgado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants