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

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

heqiauto/json-log
=================

JSON file log for Yii2

1.1.1(6y ago)01.1kMITPHPPHP &gt;=5.5

Since Jun 1Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Heqiauto/json-log)[ Packagist](https://packagist.org/packages/heqiauto/json-log)[ RSS](/packages/heqiauto-json-log/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

JSON Log
========

[](#json-log)

[![Latest Stable Version](https://camo.githubusercontent.com/b979796a4c39410d4a736e63e3878fcf5299451de5f96ca1008caa22defd0b85/68747470733a2f2f706f7365722e707567782e6f72672f686571696175746f2f6a736f6e2d6c6f672f762f737461626c652e737667)](https://packagist.org/packages/heqiauto/json-log)[![Total Downloads](https://camo.githubusercontent.com/5f7e020d85ce6b957f5420d43472648faea7244d99f786064f0aabb9ce57182b/68747470733a2f2f706f7365722e707567782e6f72672f686571696175746f2f6a736f6e2d6c6f672f646f776e6c6f6164732e737667)](https://packagist.org/packages/heqiauto/json-log)[![Latest Unstable Version](https://camo.githubusercontent.com/982d3d06c59fa3befab58d5068a722283b94e985d9be2400fcebf8f64f068018/68747470733a2f2f706f7365722e707567782e6f72672f686571696175746f2f6a736f6e2d6c6f672f762f756e737461626c652e737667)](https://packagist.org/packages/heqiauto/json-log)[![License](https://camo.githubusercontent.com/68c897a9c7c94e571ddff4fe4151124c0c4f1a4378d5c7baba94b1f4f88cc514/68747470733a2f2f706f7365722e707567782e6f72672f686571696175746f2f6a736f6e2d6c6f672f6c6963656e73652e737667)](https://packagist.org/packages/heqiauto/json-log)[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](https://www.yiiframework.com/)

JSON file log for Yii2.

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

[](#requirements)

- PHP 5.5 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Yii2 project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the library:

    ```
     composer require heqiauto/json-log

    ```
3. Config your application components:

```
[
    'components' => [
        'log' => [
            'targets' => [
                [
                    'class' => \heqiauto\jsonlog\FileTarget::class,
                    'levels' => ['error', 'warning', 'info'], // Without TRACE and PROFILE on production environment
                ],
            ],
        ],
    ],
]
```

License
-------

[](#license)

The JSON Log is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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 ~5 days

Total

3

Last Release

2529d ago

### Community

Maintainers

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

---

Top Contributors

[![panlatent](https://avatars.githubusercontent.com/u/4393268?v=4)](https://github.com/panlatent "panlatent (9 commits)")

---

Tags

elkjson-loglogyii2

### Embed Badge

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

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

###  Alternatives

[bedezign/yii2-audit

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

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

Yii 2 extension for Sentry

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

PHPackages © 2026

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