heqiauto / json-log
JSON file log for Yii2
Installs: 1 085
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/heqiauto/json-log
Requires
- php: >=5.5
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-10-11 22:19:48 UTC
README
JSON file log for Yii2.
Requirements
- PHP 5.5 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Yii2 project:
cd /path/to/project -
Then tell Composer to load the library:
composer require heqiauto/json-log -
Config your application components:
[
'components' => [
'log' => [
'targets' => [
[
'class' => \heqiauto\jsonlog\FileTarget::class,
'levels' => ['error', 'warning', 'info'], // Without TRACE and PROFILE on production environment
],
],
],
],
]
License
The JSON Log is open-sourced software licensed under the MIT license.