Interface QCodeExecutionLoggerInterface

All Superinterfaces:
Serializable
All Known Implementing Classes:
AccumulatingBuildScriptLogAndScriptLogLineExecutionLogger, BuildScriptLogAndScriptLogLineExecutionLogger, Log4jCodeExecutionLogger, NoopCodeExecutionLogger, StoreScriptLogAndScriptLogLineExecutionLogger, SystemOutExecutionLogger

public interface QCodeExecutionLoggerInterface extends Serializable
Interface to provide logging functionality to QCodeExecution (e.g., scripts)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called if the script fails with an exception.
    void
    Called if the script completes without exception.
    void
    Called when the execution starts - takes the execution's input object.
    void
    Called to log a line, a message.
    default void
    log(String message)
    In case the loggerInterface object is provided to the script as context, this method gives a clean interface for the script to log a line.
  • Method Details

    • acceptExecutionStart

      void acceptExecutionStart(ExecuteCodeInput executeCodeInput)
      Called when the execution starts - takes the execution's input object.
    • acceptLogLine

      void acceptLogLine(String logLine)
      Called to log a line, a message.
    • log

      default void log(String message)
      In case the loggerInterface object is provided to the script as context, this method gives a clean interface for the script to log a line.
    • acceptException

      void acceptException(Exception exception)
      Called if the script fails with an exception.
    • acceptExecutionEnd

      void acceptExecutionEnd(Serializable output)
      Called if the script completes without exception.