public class LogFunctions extends BaseFunctions
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GROOVY_KEY |
mExecute, mFLOG, mScriptRef
Constructor and Description |
---|
LogFunctions(boolean isExecute) |
Modifier and Type | Method and Description |
---|---|
void |
addSecureLogValues(java.lang.String pSecureValue) |
void |
cleanup() |
void |
fine(java.lang.String pMessage)
Logs a message to the FlexDeploy logs with a level of FINE.
|
void |
fine(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs a message to the FlexDeploy logs with a level of FINE.
|
java.lang.String |
getGroovyKey() |
java.util.List<LogMessage> |
getLogs() |
java.lang.String |
getMessage() |
java.lang.Long |
getObjectId() |
FlexDeploySecurityConstants.SecurityObjectType |
getObjectType() |
java.lang.Long |
getParentObjectId() |
void |
info(java.lang.String pMessage)
Logs a message to the FlexDeploy logs with a level of INFO.
|
void |
info(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs a message to the FlexDeploy logs with a level of INFO.
|
void |
setLogKey(java.lang.String pLogKey) |
void |
setMessage(java.lang.String pMessage)
Sets the message shown for current webhook execution on the Webhook Messages screen.
|
void |
setMessage(java.lang.String pMessage,
boolean overwrite)
Sets the message shown for current webhook execution on the Webhook Messages screen.
|
void |
setObjectId(java.lang.Long pObjectId) |
void |
setObjectType(FlexDeploySecurityConstants.SecurityObjectType pObjectType) |
void |
setParentObjectId(java.lang.Long pParentObjectId) |
void |
setSecureLogValues(java.util.List<java.lang.String> pSecureValues) |
void |
severe(java.lang.String pMessage)
Logs a message to the FlexDeploy logs with a level of SEVERE.
|
void |
severe(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs a message to the FlexDeploy logs with a level of SEVERE.
|
void |
warning(java.lang.String pMessage)
Logs a message to the FlexDeploy logs with a level of WARNING.
|
void |
warning(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs a message to the FlexDeploy logs with a level of WARNING.
|
captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
public static final java.lang.String GROOVY_KEY
public void setObjectId(java.lang.Long pObjectId)
public java.lang.Long getObjectId()
public void setParentObjectId(java.lang.Long pParentObjectId)
public java.lang.Long getParentObjectId()
public void setObjectType(FlexDeploySecurityConstants.SecurityObjectType pObjectType)
public FlexDeploySecurityConstants.SecurityObjectType getObjectType()
public void setMessage(java.lang.String pMessage)
pMessage
- Message to set. e.g. "Branch abc created" or "Projects 1 and 2 built"public void setMessage(java.lang.String pMessage, boolean overwrite)
pMessage
- Message to set. e.g. "Branch abc created" or "Projects 1 and 2 built"overwrite
- If a message is already set, should it be overwritten with this messagepublic void info(java.lang.String pMessage)
pMessage
- The message to logpublic void info(java.lang.String pMessage, java.lang.Throwable pThrowable)
pMessage
- The message to logpThrowable
- Throwable error to logpublic void fine(java.lang.String pMessage)
pMessage
- The message to logpublic void fine(java.lang.String pMessage, java.lang.Throwable pThrowable)
pMessage
- The message to logpThrowable
- Throwable error to logpublic void warning(java.lang.String pMessage)
pMessage
- The message to logpublic void warning(java.lang.String pMessage, java.lang.Throwable pThrowable)
pMessage
- The message to logpThrowable
- Throwable error to logpublic void severe(java.lang.String pMessage)
pMessage
- The message to logpublic void severe(java.lang.String pMessage, java.lang.Throwable pThrowable)
pMessage
- The message to logpThrowable
- Throwable error to logpublic java.util.List<LogMessage> getLogs()
public java.lang.String getMessage()
public java.lang.String getGroovyKey()
getGroovyKey
in class BaseFunctions
public void setLogKey(java.lang.String pLogKey)
public void setSecureLogValues(java.util.List<java.lang.String> pSecureValues)
public void addSecureLogValues(java.lang.String pSecureValue)
public void cleanup()
cleanup
in class BaseFunctions