WC_Logger_Interface::error()
Adds an error level message.
Runtime errors that do not require immediate action but should typically be logged and monitored.
Method of the class: WC_Logger_Interface{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Logger_Interface = new WC_Logger_Interface(); $WC_Logger_Interface->error( $message, $context );
- $message(string) (required)
- Log message.
- $context(array)
- Additional information for log handlers.
Default: array()
WC_Logger_Interface::error() WC Logger Interface::error code WC 9.6.1
public function error( $message, $context = array() );