mako/sentry 问题修复 & 功能扩展

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

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

mako/sentry

最新稳定版本:7.0.0

Composer 安装命令:

composer require mako/sentry

包简介

A Sentry integration for the Mako Framework

README 文档

README

Build Status Static analysis

A Sentry integration for the Mako Framework.

Requirements

Mako 11.0 or greater.

Installation

Install the package using the following composer command:

composer require mako/sentry

Next you'll have to add a logger.sentry config key to your application.php config file.

'logger' => [
	...
	'sentry' => [
		'dsn' => 'https://<key>@sentry.io/<project>',
	],
	...
],

Then you'll have to replace the default LoggerService with the included LoggerService in the application.php config file.

'services' => [
	'core' => [
		...
		mako\sentry\services\LoggerService::class,
		...
	],
],

And finally you'll have to enable logging to sentry by setting the logger.handler key in the application.php config file to the following value:

'logger' => [
	...
	'handler' => ['Sentry', 'Stream'],
	...
],

Note that you can disable the default file logging by setting the value to ['Sentry'].

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-09-25