WC_Log_Handler_Email::handle()publicWC 1.0

Handle a log entry.

Method of the class: WC_Log_Handler_Email{}

No Hooks.

Return

true|false. False if value was not handled and true if value was handled.

Usage

$WC_Log_Handler_Email = new WC_Log_Handler_Email();
$WC_Log_Handler_Email->handle( $timestamp, $level, $message, $context );
$timestamp(int) (required)
Log timestamp.
$level(string) (required)
emergency|alert|critical|error|warning|notice|info|debug.
$message(string) (required)
Log message.
$context(array) (required)
Additional information for log handlers.

WC_Log_Handler_Email::handle() code WC 8.7.0

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

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

	return false;
}