HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //var/www/html/triad-infosec/wp-content/plugins/simple-history/loggers/class-simple-logger.php
<?php

namespace Simple_History\Loggers;

/**
 * Simple logger to log things without message key + fallback logger.
 */
class Simple_Logger extends Logger {
	/**
	 * Unique slug for this logger
	 * Will be saved in DB and used to associate each log row with its logger.
	 *
	 * @var string
	 */
	public $slug = 'SimpleLogger';

	/**
	 * Get array with information about this logger.
	 *
	 * @return array
	 */
	public function get_info() {
		$arr_info = array(
			// Shown on the info-tab in settings, use these fields to tell
			// an admin what your logger is used for.
			'name'        => 'SimpleLogger',
			'description' => __( 'The built in logger for Simple History', 'simple-history' ),

			// Capability required to view log entries from this logger.
			'capability' => 'edit_pages',
			'messages'   => array(
				// No pre-defined variants
				// when adding messages __() or _x() must be used.
			),
		);

		return $arr_info;
	}
}