Class SystemOutExecutionLogger
java.lang.Object
com.kingsrook.qqq.backend.core.actions.scripts.logging.SystemOutExecutionLogger
- All Implemented Interfaces:
QCodeExecutionLoggerInterface
,Serializable
Implementation of a code execution logger that logs to System.out and
System.err (for exceptions)
- See Also:
-
Constructor Summary
Constructors -
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kingsrook.qqq.backend.core.actions.scripts.logging.QCodeExecutionLoggerInterface
log
-
Constructor Details
-
SystemOutExecutionLogger
public SystemOutExecutionLogger()
-
-
Method Details
-
acceptExecutionStart
Description copied from interface:QCodeExecutionLoggerInterface
Called when the execution starts - takes the execution's input object.- Specified by:
acceptExecutionStart
in interfaceQCodeExecutionLoggerInterface
-
acceptLogLine
Description copied from interface:QCodeExecutionLoggerInterface
Called to log a line, a message.- Specified by:
acceptLogLine
in interfaceQCodeExecutionLoggerInterface
-
acceptException
Description copied from interface:QCodeExecutionLoggerInterface
Called if the script fails with an exception.- Specified by:
acceptException
in interfaceQCodeExecutionLoggerInterface
-
acceptExecutionEnd
Description copied from interface:QCodeExecutionLoggerInterface
Called if the script completes without exception.- Specified by:
acceptExecutionEnd
in interfaceQCodeExecutionLoggerInterface
-