LOG_MESSAGE

Logs a message to the logging system.

Usage

LOG_MESSAGE(severity, message)

Parameters

severity

Number

The severity of the log message.

message

String

The message text to log.

Returns

Action

Examples

LOG_MESSAGE(2, ‘The temperature is getting too hot’)

A message is logged to the system with severity ‘Warning’

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