Documentation
LogMessage
Require: IP-Symcon >= 5.0
void LogMessage (string $Message, int $Type)
Parameters
Message | Content of the message |
||||||||||||||||||
Type |
|
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.
Depending on the type, the messages differ in their presentation within the message window. (see messages )
KL_DEBUG are written to the log only. If the special switch "LogfileVerbose" is deactivated, these are not even written to the log.
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);