项目作者: Heqiauto

项目描述 :
JSON file log for Yii2
高级语言: PHP
项目地址: git://github.com/Heqiauto/json-log.git
创建时间: 2019-06-01T05:51:56Z
项目社区:https://github.com/Heqiauto/json-log

开源协议:MIT License

下载


JSON Log

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:

    1. cd /path/to/project
  2. Then tell Composer to load the library:

    1. composer require heqiauto/json-log
  3. Config your application components:

  1. [
  2. 'components' => [
  3. 'log' => [
  4. 'targets' => [
  5. [
  6. 'class' => \heqiauto\jsonlog\FileTarget::class,
  7. 'levels' => ['error', 'warning', 'info'], // Without TRACE and PROFILE on production environment
  8. ],
  9. ],
  10. ],
  11. ],
  12. ]

License

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