WC_Logger_Interface::log
Add a log entry.
Method of the class: WC_Logger_Interface{}
No Hooks.
Returns
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() WC Logger Interface::log code WC 10.3.5
public function log( $level, $message, $context = array() );