PHPackages                             skywalker-labs/log-viewer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. skywalker-labs/log-viewer

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

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.

v2.2.0(3mo ago)11MITPHPPHP ^7.4 || ^8.0CI passing

Since Feb 7Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/skywalker-labs/log-viewer)[ Packagist](https://packagist.org/packages/skywalker-labs/log-viewer)[ Docs](https://github.com/skywalker-labs/log-viewer)[ GitHub Sponsors](https://github.com/sponsors/ermradulsharma)[ RSS](/packages/skywalker-labs-log-viewer/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (15)Versions (8)Used By (0)

🛠️ LogViewer: Enterprise Multi-Channel Intelligence
===================================================

[](#️-logviewer-enterprise-multi-channel-intelligence)

### *Ultra-High Performance Log Management for Laravel 12+*

[](#ultra-high-performance-log-management-for-laravel-12)

[![Version](https://camo.githubusercontent.com/93b382754ca95569b4fdd4494471f09b7058809b5f8b0b6d3cc9237e87e48141/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f736b7977616c6b65722d6c6162732f6c6f672d7669657765723f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/93b382754ca95569b4fdd4494471f09b7058809b5f8b0b6d3cc9237e87e48141/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f736b7977616c6b65722d6c6162732f6c6f672d7669657765723f7374796c653d666f722d7468652d6261646765)[![Total Downloads](https://camo.githubusercontent.com/aaae839379509f66b3cbb56eb8694926cb7e0d068e4fe96c26572a51689fe4f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736b7977616c6b65722d6c6162732f6c6f672d7669657765722e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/skywalker-labs/log-viewer)[![PHPStan Level 9](https://camo.githubusercontent.com/1e1a4f0408dd61b01dde0d7c5a0a067d5a51764ea637d4625f7d4358bd09e1ac/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230392d627269676874677265656e2e7376673f7374796c653d666f722d7468652d6261646765)](https://phpstan.org)[![PHP Version](https://camo.githubusercontent.com/e202a9fb78bcbd0b5c20b8e5b094d43e502f17a774239954da750147f2cbb6ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e322d626c75652e7376673f7374796c653d666f722d7468652d6261646765)](https://www.php.net/)[![License](https://camo.githubusercontent.com/f578eb46965ef503e538c2cc7bad230a738f910b3919d2629c680bc9e315e02b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736b7977616c6b65722d6c6162732f6c6f672d7669657765722e7376673f7374796c653d666f722d7468652d6261646765)](LICENSE.md)[![Security Policy](https://camo.githubusercontent.com/fcb317cda612f7da01c58c35c7b3550abac315db012a79763db0b6b6191f8e6e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73656375726974792d706f6c6963792d627269676874677265656e2e7376673f7374796c653d666f722d7468652d6261646765)](SECURITY.md)

---

**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](#usage) • [Killer Features](#-killer-features) • [Performance](#-performance-benchmarks) • [Roadmap](#-roadmap)

🚀 Why LogViewer?
----------------

[](#-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/toolkit` for 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)
--------------------------------

[](#-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
-----------------

[](#-killer-features)

### 1. AI-Ready Error Analysis

[](#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

[](#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

[](#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
------------------------

[](#-performance-benchmarks)

MetricCompetitor (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)
-----------------------

[](#️-usage-pro-examples)

### Basic Implementation

[](#basic-implementation)

Get all logs with single-line precision:

```
protected array $logs {
    get => LogViewer::all();
}
```

### Advanced: Multi-Channel Filtering

[](#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
----------------------

[](#️-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
----------

[](#️-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 &amp; DX
-----------------------

[](#-contributing--dx)

We prioritize **Zero-Config**. Install, register, and see your logs.

Created &amp; Maintained by **Skywalker-Labs**.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance79

Regular maintenance activity

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

5

Last Release

114d ago

Major Versions

v1.2.0 → v2.1.02026-03-10

PHP version history (4 changes)1.0.0PHP ^8.2

1.1.0PHP ^7.4|^8.0

v1.2.0PHP ^7.4 | ^8.0 | ^9.0

v2.2.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/68241409c48fd5184c979320937b363826a5a9aeeb4260e8d1fa753be39458b9?d=identicon)[ermradulsharma](/maintainers/ermradulsharma)

---

Top Contributors

[![ermradulsharma](https://avatars.githubusercontent.com/u/15956546?v=4)](https://github.com/ermradulsharma "ermradulsharma (81 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

logapilaravelmonitoringlaravel-packagereportingrbaclog viewerskywalkermulti-languagedark-modeai-analysisperformance-insights

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/skywalker-labs-log-viewer/health.svg)

```
[![Health](https://phpackages.com/badges/skywalker-labs-log-viewer/health.svg)](https://phpackages.com/packages/skywalker-labs-log-viewer)
```

###  Alternatives

[arcanedev/log-viewer

Provides a Log Viewer for Laravel

2.4k7.0M54](/packages/arcanedev-log-viewer)[pagemachine/typo3-formlog

Form log for TYPO3

23238.6k8](/packages/pagemachine-typo3-formlog)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
