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 TypeMethodDescriptionvoid
acceptException
(Exception exception) Called if the script fails with an exception.void
acceptExecutionEnd
(Serializable output) Called if the script completes without exception.void
acceptExecutionStart
(ExecuteCodeInput executeCodeInput) Called when the execution starts - takes the execution's input object.void
acceptLogLine
(String logLine) Called to log a line, a message.default void
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
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.
-