PHPackages                             kop/yii2-logentries - 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. kop/yii2-logentries

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

kop/yii2-logentries
===================

Logentries log target for Yii2 framework

1.0.2(10y ago)69.3k4MITPHPPHP &gt;=5.4.0

Since Jul 2Pushed 10y ago2 watchersCompare

[ Source](https://github.com/kop/yii2-logentries)[ Packagist](https://packagist.org/packages/kop/yii2-logentries)[ Docs](http://kop.github.io/yii2-logentries/)[ RSS](/packages/kop-yii2-logentries/feed)WikiDiscussions master Synced 1mo ago

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

Yii2 Logentries
===============

[](#yii2-logentries)

[Yii2 Logentries (Y2LE)](http://kop.github.io/yii2-logentries) adds a `LogentriesTarget` class that sends Yii2 log messages to the [Logentries log management service](https://logentries.com/).

[![Latest Stable Version](https://camo.githubusercontent.com/26eaca5952eaba62e066346e479d562bbbd3c4147c2fa4fb581bfe883ef8b390/68747470733a2f2f706f7365722e707567782e6f72672f6b6f702f796969322d6c6f67656e74726965732f762f737461626c652e737667)](https://packagist.org/packages/kop/yii2-logentries)[![Code Climate](https://camo.githubusercontent.com/10ae31a98cccdb94e67e812929dde08b92719558ab4fc67c87b88aece3178f0d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6b6f702f796969322d6c6f67656e74726965732e706e67)](https://codeclimate.com/github/kop/yii2-logentries)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3df5d61e24cea68df916a45be5d9b8947d3508409b0ebb119d4af25ce60cc9ca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6f702f796969322d6c6f67656e74726965732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kop/yii2-logentries/?branch=master)[![Version Eye](https://camo.githubusercontent.com/4f99538c0edba8bbe22a1f02a09d483e3bdeb1b6339faed65cd6348515e032b9/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6b6f703a796969322d6c6f67656e74726965732f62616467652e737667)](https://www.versioneye.com/php/kop:yii2-logentries)[![License](https://camo.githubusercontent.com/89214d341016e6d234c033c44570c605ff3ac2cdeb5053b1653ef7142aae77bc/68747470733a2f2f706f7365722e707567782e6f72672f6b6f702f796969322d6c6f67656e74726965732f6c6963656e73652e737667)](https://packagist.org/packages/kop/yii2-logentries)

Requirements
------------

[](#requirements)

- Yii 2.0
- PHP 5.4

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

[](#installation)

The preferred way to install this extension is through [Composer](http://getcomposer.org/).

Either run

`php composer.phar require kop/yii2-logentries "dev-master"`

or add

` "kop/yii2-logentries": "dev-master"`

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

> Note: **It works slow!** This log target sends each log entry to the Logentries service in the TCP mode, means it blocks the further execution of the PHP application. Make sure you understand this before using this log target.

Add Logentries target to your log component config:

```
return [
    ...
    'components' => [
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                'file' => [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
                'logentries' => [
                    'class' => 'kop\y2le\LogentriesTarget',
                    'levels' => ['error', 'warning', 'info'],
                    'categories' => ['application'],
                    'logToken' => '>',
                ],
            ],
        ],
    ],
    ...
];
```

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

[](#configuration)

The log destination is specified via `$logToken` property. Please refer to [Logentries docs for PHP applications](https://logentries.com/doc/php/) for more details.

Report
------

[](#report)

- Report any issues [on the GitHub](https://github.com/kop/yii2-logentries/issues).

License
-------

[](#license)

**yii2-logentries** is released under the MIT License. See the bundled `LICENSE.md` for details.

Resources
---------

[](#resources)

- [Project Page](http://kop.github.io/yii2-logentries)
- [Packagist Package](https://packagist.org/packages/kop/yii2-logentries)
- [Source Code](https://github.com/kop/yii2-logentries)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~207 days

Total

3

Last Release

3917d ago

### Community

Maintainers

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

---

Top Contributors

[![kop](https://avatars.githubusercontent.com/u/645148?v=4)](https://github.com/kop "kop (7 commits)")[![darkunz](https://avatars.githubusercontent.com/u/1054982?v=4)](https://github.com/darkunz "darkunz (1 commits)")

---

Tags

logyii2yiitargetlogentries

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/kop-yii2-logentries/health.svg)

```
[![Health](https://phpackages.com/badges/kop-yii2-logentries/health.svg)](https://phpackages.com/packages/kop-yii2-logentries)
```

###  Alternatives

[baibaratsky/yii2-rollbar

Rollbar for Yii2

35130.5k](/packages/baibaratsky-yii2-rollbar)

PHPackages © 2026

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