Sindbad~EG File Manager

Current Path : /home/infinitibizsol/www.erofmesquite.com/wp-content/plugins/ahrefs-seo/php7/
Upload File :
Current File : /home/infinitibizsol/www.erofmesquite.com/wp-content/plugins/ahrefs-seo/php7/class-logger.php

<?php

declare(strict_types=1);

namespace ahrefs\AhrefsSeo;

use ahrefs\AhrefsSeo_Vendor\Psr\Log\AbstractLogger;

/**
 * Logger class for Google API error logging.
 * Used for google apiclient library v2.
 *
 * @since 0.7.1
 */
class Logger extends AbstractLogger {
	/**
	 * @var array<array>
	 */
	protected $events = [];

	/**
	 * Logs with an arbitrary level.
	 *
	 * @param mixed  $level Level.
	 * @param string $message Message.
	 * @param array  $context Context.
	 *
	 * @return void
	 */
	public function log( $level, $message, array $context = array() ) {
		// Note: can not use parameter types here.
		$this->events[] = compact( 'level', 'message', 'context' );
	}

	/**
	 * Return events details. Clean events log.
	 *
	 * @return array<array>
	 */
	public function get_events() : array {
		$data         = $this->events;
		$this->events = [];
		return $data;
	}

}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists