Nenhuma Descrição

class-wc-log-handler-interface.php 690B

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