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

This package is auto-updated.

Last update: 2024-04-28 06:18:44 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 中有配置说明