heqiauto/json-log

JSON file log for Yii2

1.1.1 2019-06-11 07:22 UTC

This package is auto-updated.

Last update: 2024-09-11 20:06:43 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Yii2

JSON file log for Yii2.

Requirements

  • PHP 5.5 or later.

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

The JSON Log is open-sourced software licensed under the MIT license.