LOG_MESSAGE_WITH_DATA
Logs a message to the logging system with the additional data coming from the provided data collection.
Usage
LOG_MESSAGE_WITH_DATA(severity, message, dataCollection)
Parameters
severity |
Number |
The severity of the log message. |
message |
String |
The message text to log. |
dataCollection |
String |
The name of the data collection to send. |
Returns
Action
Examples
LOG_MESSAGE_WITH_DATA(3, ‘The temperature is getting too hot’, ‘TempCollection’) |
A message is logged to the system with severity Error, and includes all properties defined in ‘TempCollection’ |
Severity 0 |
(Verbose) Used for logging of lengthy messages |
Severity 1 |
(Informational) Indicates that the log message has an informational purpose |
Severity 2 |
(Warning) Indicates that the log message is an application warning |
Severity 3 |
(Error) Indicates that the log message should be treated as an application error |
Severity 4 |
(Critical) Indicates that a critical error occurred and caused a major failure requiring immediate attention |
Severity 5 |
(None) Indicates that the log message should not be stored |
Remarks
N/A