bossit/yii2-sentry-logger

There is no license information available for the latest version (1.0.2) of this package.

Yii2 SDK for Sentry (https://sentry.io)

Installs: 2 819

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:extension

1.0.2 2020-09-18 11:44 UTC

This package is auto-updated.

Last update: 2024-11-18 20:30:30 UTC


README

Latest Stable Version Build Status Total Downloads

Install

The preferred way to install this component is through composer.

$ composer require bossit/yii2-sentry-logger:^1.0  

Usage

The preferred way is to setup the components into our Application's configuration array:

'log' => [
    'traceLevel' => YII_DEBUG ? 3 : 0,
    'targets' => [
        [
            'class' => SentryTarget::class,
            'dsn' => '_YOUR_KEY_',
            'levels' => ['error', 'warning'],
            'logVars' => [],
            'except' => [
                'yii\web\HttpException:404',
            ],
        ],
    ],
],

That's it, you are ready to use it as Yii2 components.