承接 thathoff/kirby-sentry 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

thathoff/kirby-sentry

最新稳定版本:v3.2.1

Composer 安装命令:

composer require thathoff/kirby-sentry

包简介

Sentry integration for Kirby

README 文档

README

This is a plugin for Kirby (> 3.6.1) that logs errors and exceptions to Sentry and other Sentry compatible error trackers (eg. GitLab).

⚠️ Please Note: Kirby versions before 3.6.1 are not supported because the system.exception hook is only available since Kirby 3.6.1.

Installation

With Composer

composer require thathoff/kirby-sentry

Manual Installation

  • Download this plugin
  • Extract the archive
  • Move folder into the site/plugins directory
  • Run composer install inside this folder to install the Sentry SDK required by the plugin

Configuration

The following configuration options are available in this plugin. Add them to your site/config/config.php

DSN

This option is required. When not set the plugin is disabled. To obtain the DSN create a new Sentry project of type PHP.

Default: null

'thathoff.sentry.dsn' => "https://df2c6f7afc1a58783e15f2ae0118ff039d8a4755@0123456.ingest.sentry.io/123456",

Environment

You can configure an environment which is sent to Sentry. This can be eg. staging or any other string that helps you to identify the environment the error happened in.

Tip: Use Kirby multi environment setup to change this option.

Default: 'production'

'thathoff.sentry.environment' => 'production',

Add User Context

When a Kirby user is logged in, the plugin sends the user’s email address and the users name to Sentry to track down errors and exceptions to users.

To disable, set this option to false.

Default: true

'thathoff.sentry.addUserContext' => true,

统计信息

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

GitHub 信息

  • Stars: 20
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-24