LogApi (Logging APIs)
setLogLevel
Sets the log level. The valid values are debug, info(default), warning or error
Parameters
Returns
disableAuditLog
Disables the audit log, which is used for logging to Trillo DB. By default it is enabled
Parameters
Returns
enableAuditLog
Enables the audit log. This is the default option and is used for logging into Trillo DB. Helps in isolating errors per task
Parameters
Returns
disableLogsCollection
Disable log collections for the thread. Logs are collected for ac all and sent back to the client in the result. This is useful in debugging. By default it is disabled
Parameters
Returns
enableLogsCollection
Enable log collections for the thread
Parameters
Returns
logDebug
logging of the debug and verbose messages.
Parameters
Returns
logInfo
logging an informational and occasional message.
Parameters
Returns
logWarn
Provides a warning message
Parameters
Returns
logError
Provides an error message
Parameters
Returns
isLogLevelOn
Describes if the log level is on and returns a boolean.
Parameters
Returns
auditLog
Sends an audit message to the workbench. It can be viewed under the task logs.
Parameters
Returns
_auditLog
// Description //
Parameters
Returns
auditLogInfo
This provides the information stored in the Audit log object which includes detailed log message, any associated json object, action and the parent id.
Parameters
Returns
auditLogError
Provides information about the error in the Audit log object
Parameters
Returns
canAuditLog
For a given logging type, checks whether audit messages can be recorded
Parameters
Returns
logToConsole
Logs the appropriate messages to the console
Parameters
Returns
Last updated