WC_Logger_Interface::critical
Adds a critical level message.
Critical conditions. Example: Application component unavailable, unexpected exception.
Method of the class: WC_Logger_Interface{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Logger_Interface = new WC_Logger_Interface(); $WC_Logger_Interface->critical( $message, $context );
- $message(string) (required)
- Log message.
- $context(array)
- Additional information for log handlers.
Default:array()
WC_Logger_Interface::critical() WC Logger Interface::critical code WC 10.5.0
public function critical( $message, $context = array() );