WC_Logger::critical()publicWC 1.0

Adds a critical level message.

Critical conditions. Example: Application component unavailable, unexpected exception.

Method of the class: WC_Logger{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Logger = new WC_Logger();
$WC_Logger->critical( $message, $context );
$message(string) (required)
Message to log.
$context(array)
Log context.
Default: array()

Notes

WC_Logger::critical() code WC 9.4.2

public function critical( $message, $context = array() ) {
	$this->log( WC_Log_Levels::CRITICAL, $message, $context );
}