# wp-analytify/trunk/lib/logs/class-analytify-log-handler-interface.php

Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking), version trunk. 34 lines.

- Page: https://pluginprobe.com/plugins/wp-analytify/trunk/code/lib/logs/class-analytify-log-handler-interface.php
- Raw: https://pluginprobe.com/plugins/wp-analytify/trunk/raw/lib/logs/class-analytify-log-handler-interface.php
- Modified: 2018-10-26T13:11:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-analytify/trunk/code/lib/logs/class-analytify-log-handler-interface.php#L10-L20`.

```php
<?php
/**
 * Log Handler Interface
 *
 * @version 1.0.0
 * @package Analytify/Interface
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Analytify Log Handler Interface
 *
 * Functions that must be defined to correctly fulfill log handler API.
 *
 * @version 1.0.0
 */
interface ANALYTIFY_Log_Handler_Interface {

	/**
	 * Handle a log entry.
	 *
	 * @param int    $timestamp Log timestamp.
	 * @param string $level emergency|alert|critical|error|warning|notice|info|debug.
	 * @param string $message Log message.
	 * @param array  $context Additional information for log handlers.
	 *
	 * @return bool False if value was not handled and true if value was handled.
	 */
	public function handle( $timestamp, $level, $message, $context );
}

```
