WC_Log_Handler_Email::handle( int $timestamp, string $level, string $message, array $context )

Handle a log entry.


Description Description


Parameters Parameters

$timestamp

(Required) Log timestamp.

$level

(Required) emergency|alert|critical|error|warning|notice|info|debug.

$message

(Required) Log message.

$context

(Optional) Additional information for log handlers.


Top ↑

Return Return

(bool) False if value was not handled and true if value was handled.


Top ↑

Source Source

File: includes/log-handlers/class-wc-log-handler-email.php

	public function handle( $timestamp, $level, $message, $context ) {

		if ( $this->should_handle( $level ) ) {
			$this->add_log( $timestamp, $level, $message, $context );
			return true;
		}

		return false;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.