staffim/rollbar-bundle

此包已被废弃,不再维护。未建议替代包。

Symfony2 的错误报告到 Rollbar 的捆绑包

v1.3.1 2016-04-12 10:12 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%