2017-01-24 13:10:00 +00:00
|
|
|
<?php
|
2018-03-06 08:21:27 +00:00
|
|
|
/**
|
|
|
|
* Log Handler Interface
|
|
|
|
*
|
|
|
|
* @version 3.3.0
|
2020-08-05 16:36:24 +00:00
|
|
|
* @package WooCommerce\Interface
|
2018-03-06 08:21:27 +00:00
|
|
|
*/
|
|
|
|
|
2017-01-24 13:10:00 +00:00
|
|
|
/**
|
|
|
|
* WC Log Handler Interface
|
|
|
|
*
|
|
|
|
* Functions that must be defined to correctly fulfill log handler API.
|
|
|
|
*
|
2018-03-06 08:21:27 +00:00
|
|
|
* @version 3.3.0
|
2017-01-24 13:10:00 +00:00
|
|
|
*/
|
|
|
|
interface WC_Log_Handler_Interface {
|
2017-01-24 22:07:58 +00:00
|
|
|
|
2017-01-24 13:10:00 +00:00
|
|
|
/**
|
|
|
|
* Handle a log entry.
|
|
|
|
*
|
2018-03-06 08:21:27 +00:00
|
|
|
* @param int $timestamp Log timestamp.
|
|
|
|
* @param string $level emergency|alert|critical|error|warning|notice|info|debug.
|
2017-01-24 13:10:00 +00:00
|
|
|
* @param string $message Log message.
|
2018-03-06 08:21:27 +00:00
|
|
|
* @param array $context Additional information for log handlers.
|
2017-01-24 13:10:00 +00:00
|
|
|
*
|
|
|
|
* @return bool False if value was not handled and true if value was handled.
|
|
|
|
*/
|
|
|
|
public function handle( $timestamp, $level, $message, $context );
|
|
|
|
}
|