WordPress at Your Fingertips
function is not described

WC_Logger_Interface::log() public WC 1.0

Add a log entry.

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

No Hooks.

Return

null. Nothing.

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.

Code of WC_Logger_Interface::log() WC 5.5.2

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