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