WordPress at Your Fingertips
function is not described

WC_Geolite_Integration::log() private WC 1.0

Logging method.

{} It's a method of the class: WC_Geolite_Integration{}

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->log( $message, $level );
$message(string) (required)
Log message.
$level(string)
Log level. Available options: 'emergency', 'alert', 'critical', 'error', 'warning', 'notice', 'info' and 'debug'.
Default: 'info'

Code of WC_Geolite_Integration::log() WC 5.8.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' ) );
}