WC_Logger::emergency()
Adds an emergency level message.
System is unusable.
Method of the class: WC_Logger{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Logger = new WC_Logger(); $WC_Logger->emergency( $message, $context );
- $message(string) (required)
- Message to log.
- $context(array)
- Log context.
Default: array()
Notes
- See: WC_Logger::log
WC_Logger::emergency() WC Logger::emergency code WC 9.3.3
public function emergency( $message, $context = array() ) { $this->log( WC_Log_Levels::EMERGENCY, $message, $context ); }