✏️ 编辑:class-simple-logger.php
路径:
/home/forge/kingkrunch.com/wp/wp-content/plugins/simple-history/loggers/class-simple-logger.php
大小:917 B · 修改:2026-09-25 00:42:29 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?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() { return 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. ), ); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF