mamatveev/yii2-useful-log-targets
Composer 安装命令:
composer require mamatveev/yii2-useful-log-targets
包简介
Yii2 log targets: Sentry (Raven_Client) and ElasticSearch
README 文档
README
INSTALLATION
composer require mamatveev/yii2-useful-log-targets --dev
Add a component configuration in the application config:
'log' => [ 'targets' => [ //sentry log target [ 'class' => 'mamatveev\yii2LogTargets\SentryLogTarget', 'levels' => ['error', 'warning'], 'dsn' => 'your_sentry_dsn', ], //elasticSearch log target. connection should be configured [ 'class' => 'mamatveev\yii2LogTargets\ElasticLogTarget', 'levels' => ['info', 'error', 'warning'], 'index' => 'oplata-fssp', 'type' => 'oplata-fssp-applog', 'logVars' => ['_GET', '_POST'], 'except' => [ 'yii\web\HttpException:404', 'yii\db\Connection::open', ], ] ], ],
统计信息
- 总下载量: 3.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-20