munkireport/event 问题修复 & 功能扩展

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

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

munkireport/event

最新稳定版本:v3.4

Composer 安装命令:

composer require munkireport/event

包简介

Module for munkireport.

README 文档

README

Provides client messages which can come from report_broken_client or other scripts

The table provides the following information:

  • type (string) Use one of 'danger', 'warning', 'info' or 'success'
  • module (string) The name of the reporting module
  • msg (string) a localized message identifier (will be rendered by i18n)
  • data (string) optional data to add to the message
  • timestamp (int) UNIX timestamp

Remarks

  • Every module can only store one message. So you should only store the most relevant one.
  • A newer message will overwrite the previous message.
  • The content of the event table will be used to render events in a widget or send notifications

There's no client component to this module, it should be invoked by other modules.

Configuration file:

If you want to filter out certain modules or certain type of events within modules, you can use a YAML config file. The file is loaded by default from:

local/module_configs/event.yml

You can override this file location by specifying the following variable:

EVENT_CONFIG_PATH=/path/to/wherever/config.yml

Example 1:

filter:
    diskreport:

This will filter out all diskreport messages

Example 2:

filter:
    diskreport:
    munkireport:
      - warnings

This will also filter out all munkireport messages of the type warnings

The available types for filtering are danger, warning, success and info.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-04