Interface DockerLog


public interface DockerLog
Callback interface used to provide DockerApi output logging.
Since:
3.5.0
Author:
Dmytro Nosan
See Also:
  • Method Details

    • log

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

      static DockerLog toSystemOut()
      Factory method that returns a DockerLog that outputs to System.out.
      Returns:
      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.
      Parameters:
      out - the print stream used to output the log
      Returns:
      DockerLog instance that logs to the given print stream