Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

     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.

About

JSON file log for Yii2

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages