webCOMAND

log::log_error()

Log an error event to the event log.

Prototype

void log_error(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_error("An error has occurred.");

Related

repo::log_error()