JSON file log for Yii2
JSON file log for Yii2.
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
],
],
],
],
]
The JSON Log is open-sourced software licensed under the MIT license.