WC_Logger_Interface::log()publicWC 1.0

Add a log entry.

Method of the class: WC_Logger_Interface{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Logger_Interface = new WC_Logger_Interface();
$WC_Logger_Interface->log( $level, $message, $context );
$level(string) (required)
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(string) (required)
Log message.
$context(array)
Additional information for log handlers.
Default: array()

WC_Logger_Interface::log() code WC 8.7.0

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