ahmedofali/laravel-elk-log
Composer 安装命令:
composer require ahmedofali/laravel-elk-log
包简介
Integrate laravel with elastic search for sending all logs to elastic search
README 文档
README
This package is simple initializer of elasticsearch with laravel
Installation
You can install the package via composer:
composer require ahmedofali/laravel-elk-log
Usage
Run the below command to get installation tips.
php artisan elk:installTips
Merge this with logging.php config file
return [ 'channels' => [ 'elastic' => [ 'driver' => 'monolog', 'handler' => ElasticsearchHandler::class, 'level' => 'debug', 'formatter' => ElasticsearchFormatter::class ], ], ];
After you publish config file you will find new config file called elk.php add your environment configuration and you are ready to go with elasticsearch.
Credits
统计信息
- 总下载量: 6.51k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-20