WC_Logger_Interface::error()publicWC 1.0

Adds an error level message.

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

{} It's a method of the class: WC_Logger_Interface{}

No Hooks.


null. Nothing.


$WC_Logger_Interface = new WC_Logger_Interface();
$WC_Logger_Interface->error( $message, $context );
$message(string) (required)
Log message.
Additional information for log handlers.
Default: array()

Code of WC_Logger_Interface::error() WC 6.9.4

public function error( $message, $context = array() );