Class Log


  • public class Log
    extends java.lang.Object
    Logs messages to the Jenkins build console.
    • Constructor Summary

      Constructors 
      Constructor Description
      Log​(hudson.model.BuildListener listener)
      Generate a log that adds lines to the given BuildListener's console output.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(java.lang.String msg)
      Print an error message.
      void fatal​(java.lang.String msg)
      Print a fatal error message.
      void info​(java.lang.String msg)
      Print an info message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Log

        public Log​(hudson.model.BuildListener listener)
        Generate a log that adds lines to the given BuildListener's console output.
        Parameters:
        listener - The BuildListener responsible for adding lines to the job's console.
    • Method Detail

      • info

        public void info​(java.lang.String msg)
        Print an info message.
        Parameters:
        msg - The info message.
      • error

        public void error​(java.lang.String msg)
        Print an error message.
        Parameters:
        msg - The error message.
      • fatal

        public void fatal​(java.lang.String msg)
        Print a fatal error message.
        Parameters:
        msg - The fatal error message.