-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
[Enhancement]: Clarify documentation for IAbstractBuilder.WithLogger that it is for logs produced by the builder, not the container #1215
Comments
Improving the documentation is always a good idea. After reading this issue and thinking about the various parts where log messages are produced, it is indeed probably not as obvious as I initially thought. I would like to provide some context, and then we can consider how to improve the documentation on this matter:
Edit: While updating the documentation, we should also update this section. It is no longer up to date. |
Thank you @HofmeisterAn for thoroughly thinking through the issue. I'm also using the GetLogsAsync method to collect logs after test failure, but the other developer on my team prefers WithOutputConsumer. I don't care which one is recommended in a |
I don't understand that. What do you mean? Regarding the example you mentioned, I prefer the |
@HofmeisterAn 🤷 I don't get it either, but I asked him to explain himself on this issue. I agree with you that GetLogsAsync is easier to work with. |
Problem
The IAbstractBuilder.WithLogger method documentation states:
What is it setting the logger for? Since I'm building a container I'd assume it's for the container, not the builder.
Solution
Clarify that this is the logger for the builder and that WithOutputConsumer is used to collect logs from the container.
Benefit
Less confusion for developers using this library.
Alternatives
.
Would you like to help contributing this enhancement?
No
The text was updated successfully, but these errors were encountered: