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