Hacked By AnonymousFox

Current Path : /proc/self/root/home/wxcglxzi/www/wp-content/plugins/wordpress-seo/src/loggers/
Upload File :
Current File : //proc/self/root/home/wxcglxzi/www/wp-content/plugins/wordpress-seo/src/loggers/logger.php

<?php
/**
 * Yoast extension of the Model class.
 *
 * @package Yoast\YoastSEO\Loggers
 */

namespace Yoast\YoastSEO\Loggers;

use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;

/**
 * Creates an instance of a logger object.
 */
class Logger {

	/**
	 * The instance of the logger.
	 *
	 * @var LoggerInterface|null
	 */
	protected static $logger;

	/**
	 * Retrieves an instance of the logger.
	 *
	 * @return LoggerInterface The logger.
	 */
	public static function get_logger() {
		static $logger;

		if ( self::$logger instanceof LoggerInterface ) {
			return self::$logger;
		}

		if ( ! $logger ) {
			$logger = new NullLogger();

			/**
			 * Gives the possibility to set override the logger interface.
			 *
			 * @api LoggerInterface $logger Instance of NullLogger.
			 *
			 * @return LoggerInterface The logger object.
			 */
			$logger = apply_filters( 'wpseo_logger', $logger );
		}

		if ( ! $logger instanceof LoggerInterface ) {
			$logger = new NullLogger();
		}

		return $logger;
	}

	/**
	 * Sets the logger object.
	 *
	 * @param LoggerInterface|null $logger The logger to use.
	 */
	public static function set_logger( LoggerInterface $logger = null ) {
		if ( ! $logger instanceof LoggerInterface ) {
			$logger = new NullLogger();
		}
		self::$logger = $logger;
	}
}

Hacked By AnonymousFox1.0, Coded By AnonymousFox
Warning: unlink(/tmp/138.201.207.117:802): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1

Warning: unlink(/tmp/142.11.217.94): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1

Warning: unlink(/tmp/142.11.217.94:80): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1

Warning: unlink(/tmp/94.217.11.142:80): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1