webCOMAND

log::log_info()

Log an informational event to the event log.

Prototype

void log_info(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_info("User has logged in.");

Related

repo::log_info()