ranvk/yii2-aliyun-logtarget
最新稳定版本:v18.3.15
Composer 安装命令:
composer require ranvk/yii2-aliyun-logtarget
包简介
Aliyun Logtarget for Yii2
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ranvk/yii2-aliyun-logtarget
or add
"ranvk/yii2-aliyun-logtarget": "^18.3"
Usage
To use this extension, simply add the following code in your application configuration:
return [ //.... 'components' => [ 'log' => [ 'targets' => [ [ 'levels' => ['error', 'warning', 'info'], 'class' => 'Ranvk\Yii2AliyunLogtarget\AliyunLogTarget', 'logstore' => 'your_logstore', 'topic' => YII_ENV, 'project' => 'your_project', 'accessKeyId' => 'your_accessKeyId', 'accessKeySecret' => 'your_accessKeySecret', 'endpoint' => 'aliyun_endpoint', ], ], ], ], ];
统计信息
- 总下载量: 4.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-03-10