Class Log4jCodeExecutionLogger
java.lang.Object
com.kingsrook.qqq.backend.core.actions.scripts.logging.Log4jCodeExecutionLogger
- All Implemented Interfaces:
QCodeExecutionLoggerInterface
,Serializable
Implementation of a code execution logger that logs to LOG 4j
- 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.boolean
Getter for includeUUIDvoid
setIncludeUUID
(boolean includeUUID) Setter for includeUUIDwithIncludeUUID
(boolean includeUUID) Fluent setter for includeUUIDMethods 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
-
Log4jCodeExecutionLogger
public Log4jCodeExecutionLogger()
-
-
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
-
getIncludeUUID
public boolean getIncludeUUID()Getter for includeUUID -
setIncludeUUID
public void setIncludeUUID(boolean includeUUID) Setter for includeUUID -
withIncludeUUID
Fluent setter for includeUUID
-