Automattic\WooCommerce\Internal\EmailEditor
Logger::error
Adds error level log message.
Method of the class: Logger{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Logger = new Logger(); $Logger->error( $message, $context ): void;
- $message(string) (required)
- The log message.
- $context(array)
- The log context.
Default: array()
Logger::error() Logger::error code WC 10.3.6
public function error( string $message, array $context = array() ): void {
$this->log( WC_Log_Levels::ERROR, $message, $context );
}