← All changes
|
classes/logger/class-cartflows-log-handler-interface.php
+33
-33
1.1.19
→
3.3.0
View file →
| @@ -1,33 +1,33 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Log Handler Interface | |
| 4 | - * | |
| 5 | - * @version 3.3.0 | |
| 6 | - * @package WooCommerce/Interface | |
| 7 | - */ | |
| 8 | - | |
| 9 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 10 | - exit; // Exit if accessed directly. | |
| 11 | -} | |
| 12 | - | |
| 13 | -/** | |
| 14 | - * WC Log Handler Interface | |
| 15 | - * | |
| 16 | - * Functions that must be defined to correctly fulfill log handler API. | |
| 17 | - * | |
| 18 | - * @version 3.3.0 | |
| 19 | - */ | |
| 20 | -interface Cartflows_Log_Handler_Interface { | |
| 21 | - | |
| 22 | - /** | |
| 23 | - * Handle a log entry. | |
| 24 | - * | |
| 25 | - * @param int $timestamp Log timestamp. | |
| 26 | - * @param string $level emergency|alert|critical|error|warning|notice|info|debug. | |
| 27 | - * @param string $message Log message. | |
| 28 | - * @param array $context Additional information for log handlers. | |
| 29 | - * | |
| 30 | - * @return bool False if value was not handled and true if value was handled. | |
| 31 | - */ | |
| 32 | - public function handle( $timestamp, $level, $message, $context ); | |
| 33 | -} | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Log Handler Interface | |
| 4 | + * | |
| 5 | + * @version 3.3.0 | |
| 6 | + * @package WooCommerce/Interface | |
| 7 | + */ | |
| 8 | + | |
| 9 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 10 | + exit; // Exit if accessed directly. | |
| 11 | +} | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * WC Log Handler Interface | |
| 15 | + * | |
| 16 | + * Functions that must be defined to correctly fulfill log handler API. | |
| 17 | + * | |
| 18 | + * @version 3.3.0 | |
| 19 | + */ | |
| 20 | +interface Cartflows_Log_Handler_Interface { | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * Handle a log entry. | |
| 24 | + * | |
| 25 | + * @param int $timestamp Log timestamp. | |
| 26 | + * @param string $level emergency|alert|critical|error|warning|notice|info|debug. | |
| 27 | + * @param string $message Log message. | |
| 28 | + * @param array $context Additional information for log handlers. | |
| 29 | + * | |
| 30 | + * @return bool False if value was not handled and true if value was handled. | |
| 31 | + */ | |
| 32 | + public function handle( $timestamp, $level, $message, $context ); | |
| 33 | +} | |