Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WC_Geolite_Integration::log( string $message, string $level = 'info' )

Logging method.


Description Description


Parameters Parameters

$message

(Required) Log message.

$level

(Optional) Log level. Available options: 'emergency', 'alert', 'critical', 'error', 'warning', 'notice', 'info' and 'debug'. Defaults to 'info'.

Default value: 'info'


Top ↑

Source Source

File: includes/class-wc-geolite-integration.php

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

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.