WC_Logger_Interface::warning()
Adds a warning level message.
Exceptional occurrences that are not errors.
Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
Method of the class: WC_Logger_Interface{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Logger_Interface = new WC_Logger_Interface(); $WC_Logger_Interface->warning( $message, $context );
- $message(string) (required)
- Log message.
- $context(array)
- Additional information for log handlers.
Default: array()
WC_Logger_Interface::warning() WC Logger Interface::warning code WC 9.4.2
public function warning( $message, $context = array() );