wentao-php / push-log-to-plume
There is no license information available for the latest version (v2.0.0) of this package.
laravel 框架中,监听日志时间将日志传到plume服务中
v2.0.0
2023-05-28 04:08 UTC
Requires
- php: ^8.0
- laravel/framework: ^8.0|^9.0|^10.0
- longlang/phpkafka: ^1.2
Requires (Dev)
- phpunit/phpunit: ^9.5.10
README
laravel 框架日志推送到 Plumelog
1. 开源项目说明
文档地址:https://gitee.com/plumeorg/plumelog/blob/master/FASTSTART.md
2. 安装
composer require wentao-php/push-log-to-plume
3. 发布配置
php artisan push-log-to-plume:install
4. 说明
- 当
plumelog
设置为plumelog.model=redis
,此时有两种方案推送日志
- 利用 api 推送
127.0.0.1:8891/sendLog?logKey=plume_log_list
。 插件会在请求结束时将所有日志数据统一当做接口参数传递 - 将数据直接写入 redis 队列中
- 当
plumelog
设置为plumelog.model=kafka
,此时有一种方案推送日志,plumelog服务不支持api调用
- 将数据直接写入 kafka 队列中
- 配置文件
plume.php
中有配置说明