kunstmaan / sentry-bundle

此包已被弃用,不再维护。作者建议使用 monolog 包代替。

该仓库已弃用:已被 Monolog 替代 | SentryBundle for Symfony2 帮助将 raven-php 模块绑定到 Symfony2 包中,以便于框架中使用。它将在框架中自动加载异常处理器,以便将所有未捕获的错误发送到 Sentry 服务器。

v2.4.1 2013-12-09 16:59 UTC

README

重要:我们建议您不再使用此包。自其诞生以来,Monolog 已内置了 Sentry 支持。请参阅 https://github.com/KunstmaanLegacy/KunstmaanSentryBundle/issues/18https://github.com/Seldaek/monolog/pull/76/files

SentryBundle for Symfony2

Build Status Total Downloads Latest Stable Version Analytics

这有助于将 raven-php 模块 绑定到 Symfony2 包中,以便于框架中使用。它将在框架中自动加载异常处理器,以便将所有未捕获的错误发送到 Sentry 服务器

重要:此包在很大程度上受到 Drew Butler 的 Airbrake 包的启发。

安装要求

在您安装 KunstmaanAdminBundle 之前,应该能够将 Symfony 2.1 启动并运行。

安装说明

假设您已安装 composer.phar 或 composer 二进制文件

$ composer require kunstmaan/sentry-bundle

将 KunstmaanSentryBundle 添加到您的 AppKernel.php 文件

new Kunstmaan\SentryBundle\KunstmaanSentryBundle(),

支持多个环境

要为特定环境启用 Sentry,请将这些行添加到该环境的 config.yml 文件(例如 config_prod.yml)

kunstmaan_sentry:
    enabled: true
    dsn: "http://nnn:nnn@12345.12345.12345.12345/1"

注意,默认情况下禁用了 Sentry 日志记录。