WC_Logger::alert()publicWC 1.0

Adds an alert level message.

Action must be taken immediately. Example: Entire website down, database unavailable, etc.

Method of the class: WC_Logger{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Notes

WC_Logger::alert() code WC 9.4.2

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