« Back to Product

Documentation

LogMessage

Require: IP-Symcon >= 5.0

 void LogMessage (string $Message, int $Type) 

Parameters

Message

Content of the message

Type
Type Value Description
KL_DEBUG 10206 A debug message
KL_ERROR 10205 An error message
KL_MESSAGE 10201 A standard message
KL_NOTIFY 10203 A notification
KL_WARNING 10204 A warning message

Returns

No Return

Description

The function writes a message in the log file, specifying the type Type and the message Message. These are also displayed in the message window within the console.

Warning

Depending on the type, the messages differ in their presentation within the message window. (see messages )

Warning

KL_DEBUG are written to the log only. If the special switch "LogfileVerbose" is deactivated, these are not even written to the log.

Warning

The KL_CUSTOM message type is only available for the IPS_LogMessage function. This cannot be used in modules.

Example

// Send a warning message in the message window
$this->LogMessage("This is a warning", KL_WARNING);
Any questions?