webCOMAND

repo::log_alert()

Log an alert event to the repo::SystemLog event log.

Prototype

void log_alert(string $message, mixed $extra = NULL, long $timetamp = NULL)

Parameters

  • message - Message about the event.
  • extra - Optional string, array or other data that corresponds to event.
  • timestamp - Optional Unix timestamp the event occurred, otherwise the current time will be used.

Example

$repo->log_alert("Critical issue.  System should exit soon.");

Related

log::log_alert()