Class 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 to GenericContainer.withLogConsumer(Consumer), or any other GenericContainer to pipe all container output to System.out
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(org.testcontainers.containers.output.OutputFrame t)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • SystemOutLogConsumer

        public SystemOutLogConsumer()
      • SystemOutLogConsumer

        public SystemOutLogConsumer​(java.lang.String prefix)
    • Method Detail

      • accept

        public void accept​(org.testcontainers.containers.output.OutputFrame t)
        Specified by:
        accept in interface java.util.function.Consumer<org.testcontainers.containers.output.OutputFrame>