接口 DockerLog
public interface DockerLog
Callback interface used to provide
DockerApi
output logging.- 从以下版本开始:
- 3.5.0
- 作者:
- Dmytro Nosan
- 另请参阅:
-
方法概要
修饰符和类型方法说明void
Logs a given message.static DockerLog
to
(PrintStream out) Factory method that returns aDockerLog
that outputs to a givenPrintStream
.static DockerLog
Factory method that returns aDockerLog
that outputs toSystem.out
.
-
方法详细资料
-
log
Logs a given message.- 参数:
message
- the message to log
-
toSystemOut
Factory method that returns aDockerLog
that outputs toSystem.out
.- 返回:
DockerLog
instance that logs to system out
-
to
Factory method that returns aDockerLog
that outputs to a givenPrintStream
.- 参数:
out
- the print stream used to output the log- 返回:
DockerLog
instance that logs to the given print stream
-