bvdputte / kirby-logbook
一个用于在面板中可视化 `site/logs` 文件的 Kirby 3 插件。
1.0.4
2022-08-09 09:17 UTC
Requires
README
一个用于在面板中可视化 site/logs
文件的 Kirby 3 插件。
默认配置具有偏见,以最好地与 kirby-log 插件配合使用。
安装
- 解压缩 master.zip 到文件夹
site/plugins/kirby-logbook
或 git submodule add https://github.com/bvdputte/kirby-logbook.git site/plugins/kirby-logbook
或composer require bvdputte/kirby-logbook
⚠️ 使用此插件至少需要 Kirby 3.6。
格式化与访问
目前只有具有管理员角色的用户能够打开/使用插件中的区域。
kirby-log 插件的日志将作为表格输出。所有其他日志将以行列表的形式打印。
可配置选项
所有这些都是可选的。
// in site/config/config.php: // String. Name of logfile to show by default. Defaults to first. 'bvdputte.logbook.default' => 'mylog.log', // Array with log filenames with no access in panel. Defaults to [] 'bvdputte.logbook.hide' => ['my-restricted-log.log','some-other-log.log'], // Integer. For performance reasons, only the x last lines of the log are being fetched and shown. Defaults to 2500 'bvdputte.logbook.maxLogLines' => 2000, // Integer. The amount of lines per paginated set in the panel. Defaults to 25 'bvdputte.logbook.paginationSize' => 50, // Array of roles that need access to the logviewer 'bvdputte.logbook.accessRoles' => []
开发信息
对于 Vue 部分的开发,运行 npm run dev
在提交之前构建 vue sfc,运行 npm run build
免责声明
此插件提供“原样”且没有任何保证。自行承担风险使用,并在将其用于生产环境之前始终自行测试。如果您发现任何问题,请 创建新问题。
许可
不建议在任何推广种族主义、性别歧视、同性恋恐惧症、动物虐待、暴力或其他任何形式仇恨言论的项目中使用此插件。