File manager - Edit - /home/verseaumee/blueversionx/wp-content/plugins/rave-woocommerce-payment-gateway/includes/util/class-flutterwave-logger.php
Back
<?php /** * Provides logging capabilities for debugging purposes. * * @class Flutterwave_Logger * @version 2.0.0 * @package Flutterwave/WooCommerce * @subpackage Flutterwave/WooCommerce/util */ declare(strict_types=1); namespace Flutterwave\WooCommerce\Util; defined( 'ABSPATH' ) || exit; /** * Main Logger Class for Flutterwave WooCommerce Integration. * * @since 1.0.0 */ final class Flutterwave_Logger { /** * Source name for logger instance. * * @var string */ private array $source_name = array( 'source' => 'flutterwave' ); /** * Logger instance. * * @var Flutterwave_Logger|null */ private static ?Flutterwave_Logger $instance = null; /** * Logger instance. * * @var WC_Logger|null */ private ?WC_Logger $logger = null; /** * Logger Filename. * * @var string */ public string $file_name; /** * Logger Constructor. */ private function __construct() {} /** * Get Logger Instance. */ public static function instance() { if ( null === self::$instance ) { self::$instance = new Flutterwave_Logger(); } return self::$instance; } /** * Log information * * @param string $message constant name. */ public function info( string $message ) { wc_get_logger()->info( $message, $this->source_name ); } /** * Error information * * @param string $message constant name. */ public function error( string $message ) { wc_get_logger()->error( $message, $this->source_name ); } /** * Alert information * * @param string $message constant name. */ public function alert( string $message ) { wc_get_logger()->alert( $message, $this->source_name ); } /** * Debug information * * @param string $message constant name. */ public function debug( string $message ) { wc_get_logger()->debug( $message, $this->source_name ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings