承接 techcontributors/logpulse 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱: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
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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