Interface QCodeExecutionLoggerInterface
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AccumulatingBuildScriptLogAndScriptLogLineExecutionLogger,BuildScriptLogAndScriptLogLineExecutionLogger,Log4jCodeExecutionLogger,NoopCodeExecutionLogger,StoreScriptLogAndScriptLogLineExecutionLogger,SystemOutExecutionLogger
Interface to provide logging functionality to QCodeExecution (e.g., scripts)
-
Method Summary
Modifier and TypeMethodDescriptionvoidacceptException(Exception exception) Called if the script fails with an exception.voidacceptExecutionEnd(Serializable output) Called if the script completes without exception.voidacceptExecutionStart(ExecuteCodeInput executeCodeInput) Called when the execution starts - takes the execution's input object.voidacceptLogLine(String logLine) Called to log a line, a message.default voidIn 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
Called when the execution starts - takes the execution's input object. -
acceptLogLine
Called to log a line, a message. -
log
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
Called if the script fails with an exception. -
acceptExecutionEnd
Called if the script completes without exception.
-