public final class LogUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
followOutput(com.github.dockerjava.api.DockerClient dockerClient,
java.lang.String containerId,
java.util.function.Consumer<OutputFrame> consumer)
Attach a log consumer to a container's log outputs in follow mode.
|
static void |
followOutput(com.github.dockerjava.api.DockerClient dockerClient,
java.lang.String containerId,
java.util.function.Consumer<OutputFrame> consumer,
OutputFrame.OutputType... types)
Attach a log consumer to a container's log outputs in follow mode.
|
static java.lang.String |
getOutput(com.github.dockerjava.api.DockerClient dockerClient,
java.lang.String containerId,
OutputFrame.OutputType... types)
Retrieve all previous log outputs for a container of the specified type(s).
|
public static void followOutput(com.github.dockerjava.api.DockerClient dockerClient,
java.lang.String containerId,
java.util.function.Consumer<OutputFrame> consumer,
OutputFrame.OutputType... types)
dockerClient - a Docker clientcontainerId - container ID to attach toconsumer - a consumer of OutputFramestypes - types of OutputFrame to receivepublic static void followOutput(com.github.dockerjava.api.DockerClient dockerClient,
java.lang.String containerId,
java.util.function.Consumer<OutputFrame> consumer)
dockerClient - a Docker clientcontainerId - container ID to attach toconsumer - a consumer of OutputFramespublic static java.lang.String getOutput(com.github.dockerjava.api.DockerClient dockerClient,
java.lang.String containerId,
OutputFrame.OutputType... types)
dockerClient - a Docker clientcontainerId - container ID to attach totypes - types of OutputFrame to receive