karataserkan/log4yii
最新稳定版本:1.2.3
Composer 安装命令:
composer require karataserkan/log4yii
包简介
Yii2 Log Target
README 文档
README
log4yii
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist karataserkan/log4yii "*"
or add
"karataserkan/log4yii": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= 'targets' => [ [ 'class' => 'karataserkan\log4yii\HttpLogTarget', 'levels' => ['info', 'error', 'warning'], 'logVars' => ['_GET', '_POST', '_FILES'], 'categories' => ['test'], 'baseUrl' => 'http://url' ], [ 'class' => 'karataserkan\log4yii\StreamLogTarget', 'levels' => ['info', 'error', 'warning'], 'logVars' => ['_GET', '_POST', '_FILES'], 'url' => 'php://stdout' ] ], ?>```
统计信息
- 总下载量: 2.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2021-06-04