PHPackages                             rekurzia/yii2-sentry-log-target - 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. rekurzia/yii2-sentry-log-target

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

rekurzia/yii2-sentry-log-target
===============================

Minimal implementation of Yii2 log target sending messages to Sentry.

v2.0.0(9y ago)2521MITPHP

Since Jan 4Pushed 9y agoCompare

[ Source](https://github.com/rekurzia/yii2-sentry-log-target)[ Packagist](https://packagist.org/packages/rekurzia/yii2-sentry-log-target)[ Docs](https://github.com/rekurzia/yii2-sentry-log-target)[ RSS](/packages/rekurzia-yii2-sentry-log-target/feed)WikiDiscussions master Synced 2mo ago

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

Yii2 Sentry log target
======================

[](#yii2-sentry-log-target)

[![Build Status](https://camo.githubusercontent.com/4eb1e15e708f51269f003408189f27f06df742d530a495eadafd37d43e855ae9/68747470733a2f2f7472617669732d63692e6f72672f72656b75727a69612f796969322d73656e7472792d6c6f672d7461726765742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rekurzia/yii2-sentry-log-target)[![Latest Stable Version](https://camo.githubusercontent.com/3ed94567603d8821304de3ea6cbd11bd6070a07eda41be8b7f037e5817da3cb0/68747470733a2f2f706f7365722e707567782e6f72672f72656b75727a69612f796969322d73656e7472792d6c6f672d7461726765742f762f737461626c65)](https://github.com/rekurzia/yii2-sentry-log-target/releases)[![License](https://camo.githubusercontent.com/a535d16fa3853e75c3588c4384a843a66bda407b75b630037e942be9fd942ebd/68747470733a2f2f706f7365722e707567782e6f72672f72656b75727a69612f796969322d73656e7472792d6c6f672d7461726765742f6c6963656e7365)](https://github.com/rekurzia/yii2-sentry-log-target/blob/master/LICENSE.md)

Yii2 log target which sends log messages to your Sentry instance.

Installation
------------

[](#installation)

Using Composer:

```
composer require rekurzia/yii2-sentry-log-target

```

Usage
-----

[](#usage)

Add Sentry target to your configuration

```
$config['components']['log']['targets'] = [
    [
        'class' => Rekurzia\Log\SentryTarget::class,
        'levels' => ['error', 'warning'],
        'dsn' => 'https://abcdefgh:12345678@sentry.example.com/1',
        'includeContextMessage' => true,
        'options' => [
            'message_limit' => 2048,
        ],
    ],
];
```

Configuration
-------------

[](#configuration)

### `dsn`

[](#dsn)

Raven-compatible DSN.

### `options`

[](#options)

These options will be passed to `Raven_Client` constructor

### `includeContextMessage`

[](#includecontextmessage)

This option allows you to hide `info` level context message.

By default Yii generates also context message for you. It means that there will be two messages logged to your Sentry instance on error. First with `error`level, second with `info` level.

License
-------

[](#license)

MIT. See LICENSE file.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~179 days

Total

3

Last Release

3423d ago

Major Versions

v0.9.0 → v1.0.02016-01-05

v1.0.0 → v2.0.02016-12-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d6826c755fa3dabbbdcd1394694012fc1ae6dcd2fa5e4f242cd08e42108bd44?d=identicon)[ujovlado](/maintainers/ujovlado)

---

Top Contributors

[![ujovlado](https://avatars.githubusercontent.com/u/419849?v=4)](https://github.com/ujovlado "ujovlado (5 commits)")

---

Tags

logsentryyii2target

### Embed Badge

![Health badge](/badges/rekurzia-yii2-sentry-log-target/health.svg)

```
[![Health](https://phpackages.com/badges/rekurzia-yii2-sentry-log-target/health.svg)](https://phpackages.com/packages/rekurzia-yii2-sentry-log-target)
```

###  Alternatives

[mito/yii2-sentry

Yii 2 extension for Sentry

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

A Yii2 client for Sentry (http://getsentry.com)

2960.4k](/packages/e96-yii2-sentry)

PHPackages © 2026

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