WC_Geolite_Integration::log()privateWC 1.0

Logging method.

Метод класса: WC_Geolite_Integration{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->log( $message, $level );
$message(строка) (обязательный)
Log message.
$level(строка)
Log level. Available options: 'emergency', 'alert', 'critical', 'error', 'warning', 'notice', 'info' and 'debug'.
По умолчанию: 'info'

Код WC_Geolite_Integration::log() WC 8.7.0

private function log( $message, $level = 'info' ) {
	if ( is_null( $this->log ) ) {
		$this->log = wc_get_logger();
	}

	$this->log->log( $level, $message, array( 'source' => 'geoip' ) );
}