webCOMAND

log::log_emergency()

Log an emergency event to the event log.

Prototype

void log_emergency(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

$log->log_emergency("An error that requires immediate attention has occurred.");

Related

repo::log_emergency()