public interface DockerLog
Callback interface used to provide DockerApi output logging.
从以下版本开始:
3.5.0
作者:
Dmytro Nosan
另请参阅:
  • 方法详细资料

    • log

      void log(String message)
      Logs a given message.
      参数:
      message - the message to log
    • toSystemOut

      static DockerLog toSystemOut()
      Factory method that returns a DockerLog that outputs to System.out.
      返回:
      DockerLog instance that logs to system out
    • to

      static DockerLog to(PrintStream out)
      Factory method that returns a DockerLog that outputs to a given PrintStream.
      参数:
      out - the print stream used to output the log
      返回:
      DockerLog instance that logs to the given print stream