Class SystemOutLogConsumer
- java.lang.Object
-
- org.microshed.testing.testcontainers.SystemOutLogConsumer
-
- All Implemented Interfaces:
java.util.function.Consumer<org.testcontainers.containers.output.OutputFrame>
public class SystemOutLogConsumer extends java.lang.Object implements java.util.function.Consumer<org.testcontainers.containers.output.OutputFrame>
Can be supplied toGenericContainer.withLogConsumer(Consumer)
, or any otherGenericContainer
to pipe all container output to System.out
-
-
Constructor Summary
Constructors Constructor Description SystemOutLogConsumer()
SystemOutLogConsumer(java.lang.String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(org.testcontainers.containers.output.OutputFrame t)
-