bvdputte/kirby-logbook 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bvdputte/kirby-logbook

最新稳定版本:1.0.6

Composer 安装命令:

composer require bvdputte/kirby-logbook

包简介

A Kirby 3 panel plugin to visualise the `site/logs` folder in the panel.

README 文档

README

A Kirby 3 panel plugin to visualise the site/logs folder in the panel.
Opinionated defaults to work best with the kirby-log plugin out-of-the-box.

Kirby LogBook screenshot

Installation

  • unzip master.zip as folder site/plugins/kirby-logbook or
  • git submodule add https://github.com/bvdputte/kirby-logbook.git site/plugins/kirby-logbook or
  • composer require bvdputte/kirby-logbook

⚠️ You'll need at least Kirby 3.6 to use this plugin.

Formatting & access

For now only users with the admin role will be able to open/use the area in the plugin.

Logs from the kirby-log plugin will be output as a table. All other logs will be print as a list of lines.

Configurable options

All of them are optional.

// 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' => [] 

Development info

For development to the vue part, run npm run dev
To build vue sfc, before commit, run npm run build

Disclaimer

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

License

MIT

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

统计信息

  • 总下载量: 2.74k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 21
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 21
  • Watchers: 2
  • Forks: 1
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-13