WordPress at a glance
class is not described

WC_Log_Handler_Interface{} WC 1.0

WC Log Handler Interface

Functions that must be defined to correctly fulfill log handler API.

No Hooks.

Return

Null. Nothing.

Usage

$WC_Log_Handler_Interface = new WC_Log_Handler_Interface();
// use class methods

Methods

  1. handle( $timestamp, $level, $message, $context )

Code of WC_Log_Handler_Interface{} WC 5.0.0

<?php
interface WC_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 );
}