PHPackages                             bankiru/yii-gelf - 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. bankiru/yii-gelf

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

bankiru/yii-gelf
================

Graylog2 log route for Yii

v1.1.1(4y ago)021.8k2MITPHPPHP &gt;=5.4CI failing

Since May 14Pushed 3y ago9 watchersCompare

[ Source](https://github.com/bankiru/yii-gelf)[ Packagist](https://packagist.org/packages/bankiru/yii-gelf)[ Docs](https://github.com/bankiru/yii-gelf)[ RSS](/packages/bankiru-yii-gelf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (7)Used By (0)

Graylog2 log route for Yii [![Latest Stable Version](https://camo.githubusercontent.com/e2802d9db590805a3036f73f9847f7469b0153dba9c2908ee71592921e06c0d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62616e6b6972752f7969692d67656c662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bankiru/yii-gelf) [![Total Downloads](https://camo.githubusercontent.com/790697cb05fa12643354b546f77a4fe4b7fbc0a96e525bda7953a2ee70f83087/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62616e6b6972752f7969692d67656c662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bankiru/yii-gelf)
==============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#graylog2-log-route-for-yii--)

###### adapter for [gelf-php](https://github.com/bzikarsky/gelf-php) to Yii CLogger

[](#adapter-for-gelf-php-to-yii-clogger)

[![Build Status](https://camo.githubusercontent.com/08037d57c2b782df281fb98f9c72a93e44a5f40345bde3685b1dca03cf2807cf/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f62616e6b6972752f7969692d67656c662e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bankiru/yii-gelf)[![Scrutinizer Code Coverage Status](https://camo.githubusercontent.com/5ab57e275a8680901c54601d5157be57ac07d107fe5fc45b1e4342ee5a7f99d7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f62616e6b6972752f7969692d67656c662e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bankiru/yii-gelf/)[![Coveralls Code Coverage Status](https://camo.githubusercontent.com/b843f17e7bf1cbd56af4cd8091fa88e1f2fd38c8db5f9c241455cfbf08ffa571/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f62616e6b6972752f7969692d67656c662e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/bankiru/yii-gelf)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/abc752dde49a4a69c2ce77341ff0df2cb0051c55fe0eed11957b7e9888ba4b63/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f62616e6b6972752f7969692d67656c662e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bankiru/yii-gelf/)[![SensioLabsInsight](https://camo.githubusercontent.com/60f5ab27f67f6c98f49b661df2c992bf5b01381870f16257a1de9e1dab819ff3/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f65663231653438612d333134322d343938312d393765362d3132303561303732326265332e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/ef21e48a-3142-4981-97e6-1205a0722be3)[![Dependency Status](https://camo.githubusercontent.com/02075c2cd874455bf9fba3db685cd97f73f714a146c8be259d90f41e8ba24c0c/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535353465386566373734666632356532373030303066382f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/5554e8ef774ff25e270000f8)[![HHVM Status](https://camo.githubusercontent.com/ea0385e59c6bab64e5c80a0ae8182be671729fec4b0dbd422a4afaebbd1f7461/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f62616e6b6972752f7969692d67656c662e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/bankiru/yii-gelf)[![License](https://camo.githubusercontent.com/d3d8a1dfcf63db49f812d89f26695b95d3cead5dbb82180c9c38613446e7deab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f62616e6b6972752f7969692d67656c662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bankiru/yii-gelf)

Installing
----------

[](#installing)

### Composer

[](#composer)

```
"require": {
  "bankiru/yii-gelf": "~1.0"
}

```

### Github

[](#github)

Releases of Graylog2 log route for Yii client are available on [Github](https://github.com/bankiru/yii-gelf).

Documentation
-------------

[](#documentation)

To enable logging to Graylog2 you should add log route to Yii config. For example:

```
return [
    // ...
    'components' => [
        // ...
        'log' => [
            // ...
            'routes' => [
                // ...
                'graylog2' => [
                    'class'     => 'Bankiru\\Yii\\Logging\\Graylog2\\GelfLogRoute',
                    'levels'    => 'info,warning,error',
                    'host'      => '127.0.0.1',
                    'port'      => 12201,
                    // 'chunkSize' => Gelf\Transport\UdpTransport::CHUNK_SIZE_LAN,
                    'extra'     => [
                        'some_extra_field' => 'which will be added to "additionals"'
                    ],
                ],
                // ...
            ],
            // ...
        ],
        // ...
    ],
    // ...
];

```

Dev
---

[](#dev)

```
docker build -t bankiru/yii-gelf:latest -f ./Dockerfile ./
docker run -it --rm --net=host -v $SSH_AUTH_SOCK:/ssh-agent-sock --env SSH_AUTH_SOCK=/ssh-agent-sock -v $(pwd):/app -w /app bankiru/yii-gelf:latest bash
composer install -o
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 81.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 ~553 days

Total

5

Last Release

1811d ago

Major Versions

v0.0.2 → v1.0.02015-05-15

PHP version history (2 changes)v0.0.1PHP ~5.4

1.1.0PHP &gt;=5.4

### Community

Maintainers

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

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

---

Top Contributors

[![merryech0](https://avatars.githubusercontent.com/u/374426?v=4)](https://github.com/merryech0 "merryech0 (22 commits)")[![yapro](https://avatars.githubusercontent.com/u/263248?v=4)](https://github.com/yapro "yapro (2 commits)")[![DevBankiRu](https://avatars.githubusercontent.com/u/38461309?v=4)](https://github.com/DevBankiRu "DevBankiRu (1 commits)")[![hanovruslan](https://avatars.githubusercontent.com/u/1153520?v=4)](https://github.com/hanovruslan "hanovruslan (1 commits)")[![scaytrase](https://avatars.githubusercontent.com/u/6578413?v=4)](https://github.com/scaytrase "scaytrase (1 commits)")

---

Tags

logextensionyiigraylog2grayloggelflog route

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bankiru-yii-gelf/health.svg)

```
[![Health](https://phpackages.com/badges/bankiru-yii-gelf/health.svg)](https://phpackages.com/packages/bankiru-yii-gelf)
```

###  Alternatives

[hedii/laravel-gelf-logger

A Laravel package to send logs to a gelf compatible backend like graylog

1333.4M10](/packages/hedii-laravel-gelf-logger)[samdark/yii2-psr-log-target

Yii 2 log target which uses PSR-3 compatible logger

841.8M10](/packages/samdark-yii2-psr-log-target)

PHPackages © 2026

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