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;
}
}