LogSms
Reference for the LogSms module: an optional submodule of the Log module that sends an SMS alert when the Log module cannot write to its log file. It is a separate module so a simple application can use the Log module for logging without pulling in the Messaging module.
This page is a pure reference. For how the framework fits together, see the Guide.
LogSms- send an SMS alert when the log cannot be written.
LogSms
Registered as the Log module's alert handler. When the Log module cannot write to its log file, LogSms sends the alert as an SMS message through the Messaging module.
SendAlert
LogSms::SendAlert(string $moduleName, string $message, mixed $details): void
Send an alert as an SMS message, using the configured from and to numbers. The module name, message and details are JSON encoded and included in the message body.
| Name | Type | Description |
|---|---|---|
$moduleName | string | The module the alert came from. |
$message | string | The alert message. |
$details | mixed | Additional details, included JSON encoded. |
Returns void