PHPackages                             urbanindo/yii2-json-log-file-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. urbanindo/yii2-json-log-file-target

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

urbanindo/yii2-json-log-file-target
===================================

File target that stores log as JSON

2.0.14.1(8y ago)148.8k↑15.5%2[1 issues](https://github.com/urbanindo/yii2-json-log-file-target/issues)[1 PRs](https://github.com/urbanindo/yii2-json-log-file-target/pulls)MITPHPPHP &gt;=7.0CI failing

Since Jun 7Pushed 6y ago3 watchersCompare

[ Source](https://github.com/urbanindo/yii2-json-log-file-target)[ Packagist](https://packagist.org/packages/urbanindo/yii2-json-log-file-target)[ RSS](/packages/urbanindo-yii2-json-log-file-target/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (10)Versions (5)Used By (0)

yii2-json-log-file-target
=========================

[](#yii2-json-log-file-target)

Store log file as Json

[![Latest Stable Version](https://camo.githubusercontent.com/a3f672c1b4ff4658feae43e8dec9a8c241270e480121b2276fa23ae7b15294cd/68747470733a2f2f706f7365722e707567782e6f72672f757262616e696e646f2f796969322d6a736f6e2d6c6f672d66696c652d7461726765742f762f737461626c652e737667)](https://packagist.org/packages/urbanindo/yii2-json-log-file-target)[![Total Downloads](https://camo.githubusercontent.com/56ca47836ccd9c21d3bf1b48622465471bb4ab6aea0d2ce5830f5c085189243e/68747470733a2f2f706f7365722e707567782e6f72672f757262616e696e646f2f796969322d6a736f6e2d6c6f672d66696c652d7461726765742f646f776e6c6f6164732e737667)](https://packagist.org/packages/urbanindo/yii2-json-log-file-target)[![Latest Unstable Version](https://camo.githubusercontent.com/4451be4f5be7d8e42084f631e45b2c01f9b33539450bb31fdf019e0e963bfc44/68747470733a2f2f706f7365722e707567782e6f72672f757262616e696e646f2f796969322d6a736f6e2d6c6f672d66696c652d7461726765742f762f756e737461626c652e737667)](https://packagist.org/packages/urbanindo/yii2-json-log-file-target)[![Build Status](https://camo.githubusercontent.com/b393b515b19dee31bfc465c54ed71a5dea441c88d1cf58cf5c3322f685fb9560/68747470733a2f2f7472617669732d63692e6f72672f757262616e696e646f2f796969322d6a736f6e2d6c6f672d66696c652d7461726765742e737667)](https://travis-ci.org/urbanindo/yii2-json-log-file-target)[![codecov](https://camo.githubusercontent.com/eadddec14b99ed393d4f1864afc2aca0c31719fa6847f678f604f7242db0a798/68747470733a2f2f636f6465636f762e696f2f67682f757262616e696e646f2f796969322d6a736f6e2d6c6f672d66696c652d7461726765742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/urbanindo/yii2-json-log-file-target)

Usage
-----

[](#usage)

```
'components' => [
    'log' => [
        'targets' => [
            [
                'class' => JsonFileTarget::class,
                'levels' => ['error', 'warning'],
                'decodeMessage' => false,
            ]
        ]
    ]
]
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

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

3

Last Release

2948d ago

Major Versions

v1.0 → 2.0.14.12018-06-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b7f55dc6d59ee54e7f73ffc96ab51bac7e1e328894ad74998dc55df0df8433c?d=identicon)[urbanindo](/maintainers/urbanindo)

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

---

Top Contributors

[![petrabarus](https://avatars.githubusercontent.com/u/523289?v=4)](https://github.com/petrabarus "petrabarus (8 commits)")[![wapmorgan](https://avatars.githubusercontent.com/u/6000618?v=4)](https://github.com/wapmorgan "wapmorgan (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[bedezign/yii2-audit

Yii2 Audit records and displays web/cli requests, database changes, php/js errors and associated data.

202705.8k4](/packages/bedezign-yii2-audit)[mito/yii2-sentry

Yii 2 extension for Sentry

92382.0k](/packages/mito-yii2-sentry)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3460.8k](/packages/lav45-yii2-activity-logger)[yii2mod/yii2-cron-log

Component for logging cron jobs

2328.5k1](/packages/yii2mod-yii2-cron-log)

PHPackages © 2026

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