bariew/yii2-module-abstract-log
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Yii2 log module. =================== Description ----------- Manages system logs from web views. Installation ------------ The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Either run ``` php composer.phar require --prefer-dist bariew/yii2-module-abstract-log "*" ``` or add ``` "bariew/yii2-module-abstract-log": "*" ``` to the require section of your `composer.json` file. Usage ----- * Add log component target and module in the main config components section: ``` 'components' => [ ... 'log' => [ 'targets' => [ [ 'class' => 'yii\log\DbTarget', 'levels' => ['error', 'warning'], 'logTable' => '{{%log_error}}', 'except' => [ 'yii\web\HttpException:404', 'yii\web\HttpException:403', 'yii\web\HttpException:400', 'yii\i18n\PhpMessageSource::loadMessages' ], ], ] ] ], 'modules' => [ ... 'log' => [ 'class' => 'bariew\logAbstractModule\Module' ] ], ``` * Apply migrations from the module migrations folder. * Go to log/error/index URL
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published