Interface CliOut

All Known Implementing Classes:
CliOutLogger, CliOutNone

public interface CliOut
Interface to log messages and exceptions.
  • Method Details

    • log

      void log(String message)
      Parameters:
      message - the message to print.
    • log

      void log(Object... messages)
      Parameters:
      messages - the array of messages to print in a single line.
    • logFormat

      void logFormat(String format, Object... args)
      Like log(String) but with dynamic arguments.
      Parameters:
      format - - see String.format(String, Object...).
      args - - see String.format(String, Object...).
    • log

      void log(String message, Throwable exception)
      Parameters:
      message - the error message to print.
      exception - the Throwable that occurred or null for none.
    • log

      void log(Throwable exception)
      Parameters:
      exception - the Throwable that occurred.
    • isSuppressed

      boolean isSuppressed()
      Returns:
      true if this CliOut is suppressed and all methods will have no effect, false otherwise.