Class LogPrinter

java.lang.Object
org.jenkinsci.test.acceptance.log.LogPrinter
All Implemented Interfaces:
LogListener

public class LogPrinter extends Object implements LogListener
Prints out the received log with a prefix.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • LogPrinter

      public LogPrinter(String id)
  • Method Details

    • processLine

      public void processLine(String line) throws IOException
      Description copied from interface: LogListener
      Receives log output from Jenkins process one line at a time, in the order.
      Specified by:
      processLine in interface LogListener
      Throws:
      IOException
    • processClose

      public void processClose(Exception t)
      Description copied from interface: LogListener
      Indicates the EOF.
      Specified by:
      processClose in interface LogListener
      Parameters:
      t - if the termination of log source is unexpected, indicate the cause of the problem.