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

Add log message.


Description Description


Parameters Parameters

$timestamp

(Required) Log timestamp.

$level

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

$message

(Required) Log message.

$context

(Required) Additional information for log handlers.


Top ↑

Source Source

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

	protected function add_log( $timestamp, $level, $message, $context ) {
		$this->logs[] = $this->format_entry( $timestamp, $level, $message, $context );

		$log_severity = WC_Log_Levels::get_level_severity( $level );
		if ( $this->max_severity < $log_severity ) {
			$this->max_severity = $log_severity;
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

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