walczakmac/staffim-rollbar-bundle

Symfony2 的错误报告到 Rollbar 的扩展包

此包的规范仓库似乎已消失,因此包已被冻结。

安装数: 25,636

依赖者: 0

建议者: 0

安全: 0

星星: 0

观察者: 0

分支: 10

类型:扩展包

v1.2.2 2015-11-16 12:05 UTC

This package is not auto-updated.

Last update: 2020-03-10 20:53:47 UTC


README

Build Status SensioLabsInsight

关于

Rollbar 集成到您的 Symfony2 应用程序中。

安装

在您的 composer.json 中要求 staffim/rollbar-bundle 包并更新您的依赖。

$ composer require staffim/rollbar-bundle:*

将 StaffimRollbarBundle 添加到您应用程序的内核中

    public function registerBundles()
    {
        $bundles = array(
            ...
            new Staffim\RollbarBundle\StaffimRollbarBundle(),
            ...
        );
        ...
    }

配置

staffim_rollbar:
    # Rollbar access token
    access_token: ###
    # PHP error level (see https://php.ac.cn/manual/en/function.error-reporting.php)
    error_level: -1
    # Values from scrub.parameters are replaced by the key for specified exceptions
    scrub:
        exceptions:
            - PDOException
        parameters:
            key: %key%