Automattic\WooCommerce\EmailEditor\Engine\Logger

Default_Email_Editor_Logger::errorpublicWC 1.0

Runtime errors that do not require immediate action but should typically be logged and monitored.

Method of the class: Default_Email_Editor_Logger{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Default_Email_Editor_Logger = new Default_Email_Editor_Logger();
$Default_Email_Editor_Logger->error( $message, $context ): void;
$message(string) (required)
The log message.
$context(array)
The log context.
Default: array()

Default_Email_Editor_Logger::error() code WC 10.4.3

public function error( string $message, array $context = array() ): void {
	$this->log( self::ERROR, $message, $context );
}