ctala/yii2-sentry2-logger

Sentry2 Logger for Yii2

Installs: 5 180

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.2 2020-04-03 14:46 UTC

This package is auto-updated.

Last update: 2024-10-29 05:53:26 UTC


README

Sentry2 Logger for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require  ctala/yii2-sentry2-logger

Usage

Once the extension is installed, simply use it in your code by :

        'log' => [
            'targets' => [
                [
                    'class' => 'ctala\Sentry2\SentryTarget',
                    'levels' => ['error'],
                    'dsn' => "YOURDSN",
                    'environment' => "prod"

                ],
            ],
        ],