Class LogFunctions
java.lang.Object
flexagon.fd.services.groovy.functions.BaseFunctions
flexagon.fd.services.groovy.functions.LogFunctions
- Direct Known Subclasses:
WebhookLogFunctions
Log Functions for logging messages and capturing status messages
- Since:
- 5.3
-
Field Summary
FieldsFields inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
mFLOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSecureLogValues(String pSecureValue) voidaddSecureLogValues(Map<String, Serializable> pProperties) voidcleanup()voidLogs a message to the FlexDeploy logs with a level of FINE.voidLogs a message to the FlexDeploy logs with a level of FINE.getLogs()FlexDeploySecurityConstants.SecurityObjectTypevoidLogs a message to the FlexDeploy logs with a level of INFO.voidLogs a message to the FlexDeploy logs with a level of INFO.sanitizeMessage(String pMessage) voidvoidsetMessage(String pMessage) Sets the message shown for current webhook execution on the Webhook Messages screen.voidsetMessage(String pMessage, boolean overwrite) Sets the message shown for current webhook execution on the Webhook Messages screen.voidsetObjectId(Long pObjectId) voidsetObjectType(FlexDeploySecurityConstants.SecurityObjectType pObjectType) voidsetParentObjectId(Long pParentObjectId) voidsetSecureLogValues(List<String> pSecureValues) voidLogs a message to the FlexDeploy logs with a level of SEVERE.voidLogs a message to the FlexDeploy logs with a level of SEVERE.voidLogs a message to the FlexDeploy logs with a level of WARNING.voidLogs a message to the FlexDeploy logs with a level of WARNING.Methods inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
captureSecureValues, captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getBinding, getLogFunctions, getServerBaseUrl, setBinding
-
Field Details
-
GROOVY_KEY
- See Also:
-
-
Constructor Details
-
LogFunctions
public LogFunctions()
-
-
Method Details
-
setObjectId
-
getObjectId
-
setParentObjectId
-
getParentObjectId
-
setObjectType
public void setObjectType(FlexDeploySecurityConstants.SecurityObjectType pObjectType) -
getObjectType
public FlexDeploySecurityConstants.SecurityObjectType getObjectType() -
setMessage
Sets the message shown for current webhook execution on the Webhook Messages screen. Message will be overwritten if there are any errors during execution. Using this function will also write an info level log- Parameters:
pMessage- Message to set. e.g. "Branch abc created" or "Projects 1 and 2 built"
-
setMessage
Sets the message shown for current webhook execution on the Webhook Messages screen. Message will be overwritten if there are any errors during execution. This overload accepts an additional argument to overwrite the previous message (if any).- Parameters:
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 message- Since:
- 5.5.0.2
-
info
Logs a message to the FlexDeploy logs with a level of INFO. These logs will be added to the FlexDeploy logs in addition to the Webhook log table shown in Webhook Messages- Parameters:
pMessage- The message to log
-
info
Logs a message to the FlexDeploy logs with a level of INFO. These logs will be added to the FlexDeploy logs in addition to the Webhook log table shown in Webhook Messages- Parameters:
pMessage- The message to logpThrowable- Throwable error to log
-
fine
Logs a message to the FlexDeploy logs with a level of FINE. These logs will be added to the FlexDeploy logs in addition to the Webhook log table shown in Webhook Messages- Parameters:
pMessage- The message to log
-
fine
Logs a message to the FlexDeploy logs with a level of FINE. These logs will be added to the FlexDeploy logs in addition to the Webhook log table shown in Webhook Messages- Parameters:
pMessage- The message to logpThrowable- Throwable error to log
-
warning
Logs a message to the FlexDeploy logs with a level of WARNING. These logs will be added to the FlexDeploy logs in addition to the Webhook log table shown in Webhook Messages- Parameters:
pMessage- The message to log
-
warning
Logs a message to the FlexDeploy logs with a level of WARNING. These logs will be added to the FlexDeploy logs in addition to the Webhook log table shown in Webhook Messages- Parameters:
pMessage- The message to logpThrowable- Throwable error to log
-
severe
Logs a message to the FlexDeploy logs with a level of SEVERE. These logs will be added to the FlexDeploy logs in addition to the Webhook log table shown in Webhook Messages- Parameters:
pMessage- The message to log
-
severe
Logs a message to the FlexDeploy logs with a level of SEVERE. These logs will be added to the FlexDeploy logs in addition to the Webhook log table shown in Webhook Messages- Parameters:
pMessage- The message to logpThrowable- Throwable error to log
-
getLogs
-
getMessage
-
sanitizeMessage
-
getSecureLogValues
-
getGroovyKey
- Specified by:
getGroovyKeyin classBaseFunctions
-
setLogKey
-
setSecureLogValues
-
addSecureLogValues
-
cleanup
public void cleanup()- Specified by:
cleanupin classBaseFunctions
-
addSecureLogValues
-