PHPackages                             mamatveev/yii2-useful-log-targets - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. mamatveev/yii2-useful-log-targets

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

mamatveev/yii2-useful-log-targets
=================================

Yii2 log targets: Sentry (Raven\_Client) and ElasticSearch

1.0.4(2y ago)03.7kMITPHP

Since Nov 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/m-matveev/yii2-useful-logtargets)[ Packagist](https://packagist.org/packages/mamatveev/yii2-useful-log-targets)[ RSS](/packages/mamatveev-yii2-useful-log-targets/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Yii2 Useful Log Targets
=======================

[](#yii2-useful-log-targets)

INSTALLATION
------------

[](#installation)

```
composer require mamatveev/yii2-useful-log-targets --dev
```

Add a component configuration in the application config:

```
        'log' => [
            'targets' => [
                //sentry log target
                [
                    'class' => 'mamatveev\yii2LogTargets\SentryLogTarget',
                    'levels' => ['error', 'warning'],
                    'dsn' => 'your_sentry_dsn',
                ],
                //elasticSearch log target. connection should be configured
                [
                    'class' => 'mamatveev\yii2LogTargets\ElasticLogTarget',
                    'levels' => ['info', 'error', 'warning'],
                    'index' => 'oplata-fssp',
                    'type' => 'oplata-fssp-applog',
                    'logVars' => ['_GET', '_POST'],
                    'except' => [
                        'yii\web\HttpException:404',
                        'yii\db\Connection::open',
                    ],
                ]
            ],
        ],
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

920d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a966e09b7e2bbcc67dbc95f545194157f8af8128bfa16fd1a186a3537483f46a?d=identicon)[mamatveev](/maintainers/mamatveev)

---

Top Contributors

[![m-matveev](https://avatars.githubusercontent.com/u/3264010?v=4)](https://github.com/m-matveev "m-matveev (14 commits)")[![Terciuss](https://avatars.githubusercontent.com/u/51907411?v=4)](https://github.com/Terciuss "Terciuss (3 commits)")

### Embed Badge

![Health badge](/badges/mamatveev-yii2-useful-log-targets/health.svg)

```
[![Health](https://phpackages.com/badges/mamatveev-yii2-useful-log-targets/health.svg)](https://phpackages.com/packages/mamatveev-yii2-useful-log-targets)
```

###  Alternatives

[sentry/sentry-laravel

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

1.3k114.3M154](/packages/sentry-sentry-laravel)[sentry/sentry-symfony

Symfony integration for Sentry (http://getsentry.com)

73761.4M66](/packages/sentry-sentry-symfony)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327134.8M151](/packages/sentry-sdk)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[stayallive/wp-sentry

A (unofficial) WordPress plugin to report PHP and JavaScript errors to Sentry.

379197.9k](/packages/stayallive-wp-sentry)[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
