WC_Geo_IP::log()
Logging method.
Method of the class: WC_Geo_IP{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_Geo_IP::log( $message, $level );
- $message(string) (required)
- Log message.
- $level(string)
- Optional.
php emergency|alert|critical|error|warning|notice|info|debug
Default: 'info'
WC_Geo_IP::log() WC Geo IP::log code 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' ) ); }