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.

Метод класса: WC_Logger_Interface{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Logger_Interface = new WC_Logger_Interface();
$WC_Logger_Interface->error( $message, $context );
$message(строка) (обязательный)
Log message.
$context(массив)
Additional information for log handlers.
По умолчанию: array()

Код WC_Logger_Interface::error() WC 8.7.0

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