Message Log Functions
Message Log functions let you log messages to the Message Log. For more information about the Message Log feature, see Message Log Overview.
Use the $severity argument to identify the type of messages you want to log. You can log these types of messages:
- debug
- information
- warning
- error
If you do not specify the $severity argument to the MessageLogWrite() function, it logs an information message. A message written to the Message Log contains the timestamp, message severity, and content of the message.
function MessageLogWrite($message as string, $severity as MessageLogSeverity)
Adds the specified message with the specified severity to the Message Log.
Arguments
$message The message to add.
$severity The severity of the message.
function MessageLogWrite($message as string)
Adds the specified message with MessageLogSeverity.Information to the Message Log.
Arguments
$message The message to add.
function MessageLogClear()
Clears the Message Log.