WC_Logger_Interface::log()publicWC 1.0

Add a log entry.

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

Хуков нет.

Возвращает

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

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

$WC_Logger_Interface = new WC_Logger_Interface();
$WC_Logger_Interface->log( $level, $message, $context );
$level(строка) (обязательный)
One of the following:
php 'emergency': System is unusable. 'alert': Action must be taken immediately. 'critical': Critical conditions. 'error': Error conditions. 'warning': Warning conditions. 'notice': Normal but significant condition. 'info': Informational messages. 'debug': Debug-level messages.
$message(строка) (обязательный)
Log message.
$context(массив)
Additional information for log handlers.
По умолчанию: array()

Код WC_Logger_Interface::log() WC 8.7.0

public function log( $level, $message, $context = array() );