get_log() public static method

Get the internal event log.
public static get_log ( $event = false, $num = false ) : array
$event (string) - only return the specific log events
$num (int) - get specific number of latest results, limited to 200
return array of log events || WP_Error for invalid params
コード例 #1
0
 protected function result()
 {
     $args = $this->input();
     $event = isset($args['event']) && is_string($args['event']) ? $code : false;
     $num = isset($args['num']) ? intval($num) : false;
     return array('log' => Jetpack::get_log($event, $num));
 }