webCOMAND

log::log_result()

Log a result to the event log.

Prototype

void log_result(int $type, string $message, string $action = '', mixed $extra = NULL, long $timetamp = NULL)

Parameters

  • type - The log event type.
  • message - Message about the operation and result.
  • action - Name that identifies the type of result, often indicating what to expect in the extra parameter.  For example, "url".
  • extra - Optional string, array or other data that corresponds to the result and action.

Example

$log->log_result(\io_comand_log\event\type::NOTICE, 'Published Web Page', 'url', 'http://www.example.com/');

Related

repo::log_result()