class-wc-abstract-order-data-store-interface.php
4 years ago
class-wc-coupon-data-store-interface.php
4 years ago
class-wc-customer-data-store-interface.php
4 years ago
class-wc-customer-download-data-store-interface.php
4 years ago
class-wc-customer-download-log-data-store-interface.php
4 years ago
class-wc-importer-interface.php
4 years ago
class-wc-log-handler-interface.php
4 years ago
class-wc-logger-interface.php
4 years ago
class-wc-object-data-store-interface.php
4 years ago
class-wc-order-data-store-interface.php
4 years ago
class-wc-order-item-data-store-interface.php
3 years ago
class-wc-order-item-product-data-store-interface.php
4 years ago
class-wc-order-item-type-data-store-interface.php
4 years ago
class-wc-order-refund-data-store-interface.php
4 years ago
class-wc-payment-token-data-store-interface.php
4 years ago
class-wc-product-data-store-interface.php
4 years ago
class-wc-product-variable-data-store-interface.php
4 years ago
class-wc-queue-interface.php
4 years ago
class-wc-shipping-zone-data-store-interface.php
4 years ago
class-wc-webhooks-data-store-interface.php
4 years ago
class-wc-log-handler-interface.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Log Handler Interface |
| 4 | * |
| 5 | * @version 3.3.0 |
| 6 | * @package WooCommerce\Interface |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * WC Log Handler Interface |
| 11 | * |
| 12 | * Functions that must be defined to correctly fulfill log handler API. |
| 13 | * |
| 14 | * @version 3.3.0 |
| 15 | */ |
| 16 | interface WC_Log_Handler_Interface { |
| 17 | |
| 18 | /** |
| 19 | * Handle a log entry. |
| 20 | * |
| 21 | * @param int $timestamp Log timestamp. |
| 22 | * @param string $level emergency|alert|critical|error|warning|notice|info|debug. |
| 23 | * @param string $message Log message. |
| 24 | * @param array $context Additional information for log handlers. |
| 25 | * |
| 26 | * @return bool False if value was not handled and true if value was handled. |
| 27 | */ |
| 28 | public function handle( $timestamp, $level, $message, $context ); |
| 29 | } |
| 30 |