techcontributors/logpulse 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

techcontributors/logpulse

最新稳定版本:v1.0.5

Composer 安装命令:

composer require techcontributors/logpulse

包简介

Centralized audit logging SaaS for Laravel applications.

README 文档

README

Simple and lightweight audit logging for Laravel applications.

Log important actions from your application and send them securely to your centralized logging service.

🚀 Installation

Install the package via Composer:

composer require techcontributors/logpulse

⚙️ Publish Configuration

Publish the config file:

php artisan vendor:publish --tag=log-pulse-config

This will create:

config/log-pulse.php

🔑 Environment Setup

Add the following to your .env file:

LOG_PULSE_ENABLED=true
LOG_PULSE_API_KEY=your_api_key_here

🧠 Configuration Options

Option Description
LOG_PULSE_ENABLED Enable or disable logging
LOG_PULSE_API_KEY Your application API key

✍️ Usage

You can log any action using the LogPulse facade.

use LogPulse;

LogPulse::log(
    'User Login',   // action
    'Auth',         // resource
    [               // meta (optional extra data)
        'user_id' => auth()->id(),
        'ip' => request()->ip(),
        'message' => 'User accessed logs page'
    ],
    auth()->id()    // app user id (optional)
);

📌 Parameters

Parameter Required Description
action Yes What happened
resource Yes Where it happened
meta No Extra contextual data
appUserId No Application user ID

✅ Example Use Cases

  • User login / logout tracking
  • Model create / update / delete
  • Order actions
  • Admin activities
  • Security monitoring
  • Custom business events

💡 Notes

  • Logging runs safely in background when queue is enabled.
  • If queue worker is not running, logs will still be processed.
  • No database setup required.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固