WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal::log() public WC 1.0

Logging method.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Gateway_Paypal::log( $message, $level );
$message(string) (required)
Log message.
$level(string)
Possible values: emergency|alert|critical|error|warning|notice|info|debug.
Default: 'info'

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