abdasis/logpulse
Composer 安装命令:
composer require abdasis/logpulse
包简介
Laravel error observability dashboard with Sentry-inspired UI for viewing and investigating error logs.
README 文档
README
Laravel error observability dashboard with a Sentry-inspired UI for viewing and investigating error logs.
LogPulse scans your Laravel log files, groups similar errors into issues, tracks events over time, and provides a clean dashboard to investigate stack traces, request context, and error trends.
Requirements
- PHP 8.2+
- Laravel 11 or 12
- Inertia.js v2 with React
Installation
composer require abdasis/logpulse
Publish the config file:
php artisan vendor:publish --tag=logpulse-config
Run migrations:
php artisan migrate
Publish the frontend pages (Inertia/React):
php artisan vendor:publish --tag=logpulse-pages
This copies the dashboard pages to resources/js/pages/admin/logpulse/.
Configuration
After publishing, the config file is at config/logpulse.php:
return [ // Database connection (null = default app connection) 'connection' => env('LOGPULSE_DB_CONNECTION', null), // Route prefix 'prefix' => 'cat-admin/logpulse', // Route middleware 'middleware' => ['web', 'auth.admin'], // Directories to scan for log files 'log_paths' => [ storage_path('logs'), ], // Glob pattern for log files 'log_pattern' => 'laravel*.log', // Scanner position tracking file 'position_file' => storage_path('logpulse/scanner-positions.json'), // Days to keep events before pruning 'retention_days' => 30, ];
Database Connection
By default LogPulse uses your app's default database connection. To use a separate database (e.g. SQLite), set the LOGPULSE_DB_CONNECTION env variable and add the corresponding connection in config/database.php.
Route Prefix & Middleware
Customize the prefix and middleware to match your application's admin route structure.
Usage
Scanning Logs
Scan your log files and aggregate errors into issues:
php artisan logpulse:scan
The scanner tracks file positions, so subsequent runs only process new log entries. It also detects log rotation automatically.
For continuous monitoring, schedule the command in your routes/console.php:
use Illuminate\Support\Facades\Schedule; Schedule::command('logpulse:scan')->everyFiveMinutes();
Pruning Old Events
Remove events older than the configured retention period:
php artisan logpulse:prune
Override the retention period:
php artisan logpulse:prune --days=7
Dashboard
Visit the dashboard at your configured prefix (default: /cat-admin/logpulse). The dashboard provides:
- Log file browser -- Select and browse individual log files
- Search & filter -- Filter by log level, search by message or exception class
- Pagination -- Navigate through large log files
Issue Detail
Each issue page shows:
- Exception class, message, file, and line number
- Full stack trace with vendor frame highlighting
- Event timeline chart (last 14 days)
- Request context (method, URL, headers, body)
- Actions: resolve, reopen, archive, delete
How It Works
- LogScanner reads log files from configured paths, tracking file positions to avoid re-processing
- LogParser extracts structured data (level, message, exception, stack trace, timestamp) from raw log entries
- Fingerprinter generates a unique hash for each error based on exception class, file, line, and normalized message
- LogAggregator groups parsed entries into issues by fingerprint and stores individual events
- Resolved issues are automatically reopened if the same error reappears
Database Tables
LogPulse creates two prefixed tables to avoid conflicts:
logpulse_issues-- Grouped error issues with fingerprint, status, and event countlogpulse_events-- Individual error occurrences with full context
License
MIT License. See LICENSE for details.
abdasis/logpulse 适用场景与选型建议
abdasis/logpulse 是一款 基于 TypeScript 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 4, 最近一次更新时间为 2026 年 03 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「errors」 「laravel」 「logs」 「dashboard」 「observability」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 abdasis/logpulse 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 abdasis/logpulse 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 abdasis/logpulse 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The tenancy/tenancy logs mutations
Bootstraps errors and handles them via reporters and renderers
Asynchronous Sentry for Symfony - Fire and forget
Laravel 5.x.x library for integration Monolog Sentry
Pacote simplificado para persistência de logs
Monitors errors and exceptions and reports them to Rollbar
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-04