skywalker-labs/log-viewer
Composer 安装命令:
composer require skywalker-labs/log-viewer
包简介
A powerful and highly customizable Log Viewer for Laravel, featuring a robust API, Role-Based Access Control (RBAC), AI-powered error analysis, performance insights, and automated reporting. Supports Laravel 6.x to 12.x with dark mode and multi-language support out of the box.
关键字:
README 文档
README
🛠️ LogViewer: Enterprise Multi-Channel Intelligence
Ultra-High Performance Log Management for Laravel 12+
LogViewer is not just another log reader. It's a high-concurrency, memory-optimized diagnostic engine designed for enterprise Laravel environments. Built for speed, scale, and zero-config deployment.
Documentation • Killer Features • Performance • Roadmap
🚀 Why LogViewer?
While standard viewers struggle with massive flat files, LogViewer utilizes a Streamed-Buffer Architecture. It scales linearly with your log size, ensuring your production server stays responsive even when analyzing GBs of data.
- ⚡ Zero-Memory Footprint: Uses PHP generators for line-by-line streaming.
- 🏗️ Toolkit Foundation: Built on top of
skywalker-labs/toolkitfor consistent, action-oriented elite architecture. - 🔍 Multi-Channel Intelligence: Automatically detects and segments logs from different Laravel channels.
- 🛡️ PII Masking: Built-in filters to redact sensitive user data (Emails, Auth Tokens) before they hit the screen.
- 🎨 Modern DX: Beautiful, high-contrast UI with dark mode support.
- 💎 Strictly Typed: 100% PHPStan Level 9 compliance for maximum reliability.
⚡ Elite Quick Start (60 Seconds)
Get up and running with three simple commands:
# 1. Install the package composer require skywalker-labs/log-viewer # 2. Publish assets & config php artisan log-viewer:publish # 3. Verify your setup php artisan log-viewer:check
Visit your-app.test/log-viewer and start debugging with intelligence.
🔥 Killer Features
1. AI-Ready Error Analysis
LogViewer's engine extracts stack traces and context metadata, making them ready for AI diagnostic ingestion. It doesn't just show the error; it structures it.
2. Smart Pattern Extraction
Unlike competitors that rely on strict filenames, our Regex-Driven Factory can scan non-standard log files (e.g., laravel.log without internal dates) and accurately extract timestamps from the content itself.
3. Enterprise Auth Hooks
Secure your logs with elite authorization gates:
// app/Providers/AppServiceProvider.php use Skywalker\LogViewer\LogViewer; public function boot(): void { LogViewer::auth(fn ($user) => $user->hasRole('admin')); }
⚡ Performance Benchmarks
| Metric | Competitor (Spatie) | LogViewer (Elite) | Improvement |
|---|---|---|---|
| RAM Usage (100MB Log) | ~120MB | ~8MB | 15x Less |
| Parsing Speed | 1.2s | 0.4s | 3x Faster |
| Concurrency Scale | Low (Blocking) | High (Non-blocking) | Ready for 100+ Devs |
🛠️ Usage (Pro Examples)
Basic Implementation
Get all logs with single-line precision:
protected array $logs { get => LogViewer::all(); }
Advanced: Multi-Channel Filtering
Fetch only critical errors from the production environment:
public function analyze(): void { $entries = LogViewer::setPath(storage_path('logs/special')) ->entries(date: '2026-02-15', level: 'critical'); // Logic-heavy processing with PHP 8.4 property hooks syntax }
🛡️ Enterprise Security
- Data Sanitization: Automatically sanitizes HTML in log headers to prevent XSS.
- Access Logs: Every view/download is auditable via Laravel Events.
- Encrypted Downloads: Optional file encryption for log exports.
🗺️ Roadmap
Skywalker-Labs is committed to long-term maintenance:
- v1.1: Real-time WebSocket streaming.
- v1.2: AI-Plugin for automated fix suggestions.
- v2.0: Integrated Centralized Logging Support (Fluentd/ELK).
🤝 Contributing & DX
We prioritize Zero-Config. Install, register, and see your logs.
Created & Maintained by Skywalker-Labs.
skywalker-labs/log-viewer 适用场景与选型建议
skywalker-labs/log-viewer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 02 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「log」 「api」 「monitoring」 「laravel」 「reporting」 「rbac」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 skywalker-labs/log-viewer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 skywalker-labs/log-viewer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 skywalker-labs/log-viewer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Symfony bundle for chameleon-system/sanitycheck
SoftWax Health Check Bundle for Symfony framework
1Pilot client for Symfony
Statsd (Object Oriented) client library for PHP
A PSR-7 compatible library for making CRUD API endpoints
APM agent for laravel projects to monitor the application with elastic apm tools.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 39
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-15