@Override
    public void onNext(Frame frame) {
        if (frame != null) {
            final OutputFrame.OutputType type = OutputFrame.OutputType.forStreamType(frame.getStreamType());
            if (type != null) {
                final LineConsumer consumer = consumers.get(type);
                if (consumer == null) {
                    LOGGER.error("got frame with type {}, for which no handler is configured", frame.getStreamType());
                } else if (frame.getPayload() != null) {
                    consumer.processFrame(frame.getPayload());
                }
            }
        }
    }
Set this callback to use the specified consumer for the given output type.
The same consumer can be configured for more than one output type.
@param outputType the output type to configure
@param consumer the consumer to use for that output type
core/src/main/java/org/testcontainers/containers/output/FrameConsumerResultCallback.java