WC_Geolite_Integration::log()
Logging method.
Method of the class: WC_Geolite_Integration{}
No Hooks.
Return
null
. Nothing (null).
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'
WC_Geolite_Integration::log() WC Geolite Integration::log code WC 9.3.1
private function log( $message, $level = 'info' ) { if ( is_null( $this->log ) ) { $this->log = wc_get_logger(); } $this->log->log( $level, $message, array( 'source' => 'geoip' ) ); }