Class ConsoleLogger

java.lang.Object
org.jenkinsci.plugins.dockerbuildstep.log.ConsoleLogger

public class ConsoleLogger extends Object
A helper class which offers various types of logging. Currently it provides plain logging directly into console log and annotated log via DockerConsoleAnnotator.
Author:
vjuranek
  • Constructor Details

  • Method Details

    • getListener

      public BuildListener getListener()
    • getLogger

      public PrintStream getLogger()
    • logAnnot

      public void logAnnot(String message)
    • logInfo

      public void logInfo(String message)
    • logWarn

      public void logWarn(String message)
    • logError

      public void logError(String message)
    • logAnnot

      public void logAnnot(String prefix, String message)
      Logs annotated messages
      Parameters:
      message - message to be annotated
    • log

      public void log(String message)
      Logs plain text messages directly into console
      Parameters:
      message - message in plain text