WC_Gateway_Paypal::log()public staticWC 1.0

Logging method.

Метод класса: WC_Gateway_Paypal{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WC_Gateway_Paypal::log( $message, $level );
$message(строка) (обязательный)
Log message.
$level(строка)
Possible values: emergency|alert|critical|error|warning|notice|info|debug.
По умолчанию: 'info'

Код WC_Gateway_Paypal::log() WC 8.7.0

public static function log( $message, $level = 'info' ) {
	if ( self::$log_enabled ) {
		if ( empty( self::$log ) ) {
			self::$log = wc_get_logger();
		}
		self::$log->log( $level, $message, array( 'source' => 'paypal' ) );
	}
}