WC_Geo_IP::log()
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 Geo IP::log WC 9.7.1
public static function log( $message, $level = 'info' ) { if ( empty( self::$log ) ) { self::$log = wc_get_logger(); } self::$log->log( $level, $message, array( 'source' => 'geoip' ) ); }