WC_Geo_IP::log()public staticWC 1.0

Logging method.

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

Хуков нет.

Возвращает

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

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

$result = WC_Geo_IP::log( $message, $level );
$message(строка) (обязательный)
Log message.
$level(строка)
Optional.
php emergency|alert|critical|error|warning|notice|info|debug
По умолчанию: 'info'

Код WC_Geo_IP::log() WC 8.7.0

public static function log( $message, $level = 'info' ) {
	if ( empty( self::$log ) ) {
		self::$log = wc_get_logger();
	}
	self::$log->log( $level, $message, array( 'source' => 'geoip' ) );
}