wentao-php/push-log-to-plume

此包的最新版本(v2.0.0)没有提供许可证信息。

在laravel框架中,监听日志并将日志推送到plume服务中

v2.0.0 2023-05-28 04:08 UTC

This package is auto-updated.

Last update: 2024-09-28 07:11:28 UTC


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时,此时有两种方案推送日志:
  1. 使用 API 推送 127.0.0.1:8891/sendLog?logKey=plume_log_list。插件会在请求结束时将所有日志数据统一当做接口参数传递
  2. 将数据直接写入 Redis 队列中
  • plumelog设置为plumelog.model=kafka时,此时有一种方案推送日志,plumelog服务不支持API调用
  1. 将数据直接写入 Kafka 队列中
  • 配置文件 plume.php 中有配置说明