diff --git a/includes/abstracts/abstract-wc-log-handler.php b/includes/abstracts/abstract-wc-log-handler.php index 39d74dd92c9..a8f5898ffd7 100644 --- a/includes/abstracts/abstract-wc-log-handler.php +++ b/includes/abstracts/abstract-wc-log-handler.php @@ -11,20 +11,7 @@ if ( ! defined( 'ABSPATH' ) ) { * @category Abstract Class * @author WooThemes */ -abstract class WC_Log_Handler { - - - /** - * 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. - */ - abstract public function handle( $timestamp, $level, $message, $context ); +abstract class WC_Log_Handler implements WC_Log_Handler_Interface { /** * Formats a timestamp for use in log messages. diff --git a/includes/interfaces/class-wc-log-handler-interface.php b/includes/interfaces/class-wc-log-handler-interface.php new file mode 100644 index 00000000000..1f5dfc67d35 --- /dev/null +++ b/includes/interfaces/class-wc-log-handler-interface.php @@ -0,0 +1,27 @@ +