Improve container logging - #4368
Conversation
* BaseConsumer manages the OutputTypes which should be consumed. * New abstract LogConsumer manages the logger instance and allows disabling at runtime. * New JavaUtilLogConsumer as alternative to Slf4jLogConsumer. * Container.hasLogConsumers() and clearLogConsumers() to avoid and remove unwanted loggers. * GenericContainer.logConsumers is now a Set to prevent duplicate loggers.
|
Hi @reneleonhardt, There are a lot of unrelated changes (code style, You can always follow up with things like Thanks! |
Just to be sure, do you mean I should remove all fixes for code warnings and make a separate PR for all of them?
And then make another PR for things like |
Yes, let's not do them as part of this PR, as otherwise they make it much bigger (and harder to review/accept)
We may do them in this PR, but then we won't be able to merge it as quickly, as we need to discuss them first and can't accept as is, so I would recommend making the smallest possible change, and follow up with another PR for these. Thanks! |
|
Ok, I'll try to disect everything. |
|
Do you know why |
|
@reneleonhardt it looks like you introduced a binary incompatible change. You can run the same task locally and check the report - it will tell you where. |
Strange tool, it's doesn't support variadic functions (Java 5), to avoid this "failure" I had to duplicate the constructor now... |
|
@reneleonhardt this has nothing to do with what tool supports, that's how Java and its binary compatibility works :) |
|
Is something missing or can this be merged? |
BaseConsumermanages theOutputTypeswhich should be consumed.LogConsumermanages the logger instance and allows disabling at runtime.JavaUtilLogConsumeras alternative toSlf4jLogConsumer.