PHPackages                             fabiooak/yii2-log-json - 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. fabiooak/yii2-log-json

ActiveLibrary

fabiooak/yii2-log-json
======================

Extends the file logging changing the output to JSON format. It's a useful extension to integrate with FileBeat and ELK stack.

0.0.1(5y ago)016BSD-3-ClausePHP

Since Nov 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/fabiooak/yii2-log-json)[ Packagist](https://packagist.org/packages/fabiooak/yii2-log-json)[ RSS](/packages/fabiooak-yii2-log-json/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

yii2-log-json
=============

[](#yii2-log-json)

Extends the file logging changing the output to JSON format. It's a useful extension to integrate with FileBeat and ELK stack.

The purpose of this extension was to solve a specific problem that I had with exporting logs for use with filebeat.

After publishing this extension I found some more complete projects that solve this same problem, consider testing them if this lib doesn't meet what you need.

Usage
-----

[](#usage)

```
'components' => [
    'log' => [
        'targets' => [
            [
                'class' => 'fabiooak\yii2\log\JsonFileTarget',
                'levels' => ['info', 'trace', 'error', 'warning']
            ]
        ]
    ]
]
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

1999d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7738b75b7f31f5be87f120ad6822ca1300d34063111da83449ae295eb3c770d6?d=identicon)[fabiooak](/maintainers/fabiooak)

---

Top Contributors

[![fabiooak](https://avatars.githubusercontent.com/u/74744999?v=4)](https://github.com/fabiooak "fabiooak (2 commits)")[![oakideas](https://avatars.githubusercontent.com/u/5075187?v=4)](https://github.com/oakideas "oakideas (2 commits)")

### Embed Badge

![Health badge](/badges/fabiooak-yii2-log-json/health.svg)

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

PHPackages © 2026

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