PHPackages                             munch/filament-logviewer - 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. [Admin Panels](/categories/admin)
4. /
5. munch/filament-logviewer

ActiveLibrary[Admin Panels](/categories/admin)

munch/filament-logviewer
========================

A beautiful Filament plugin to view, filter, and manage Laravel log files

1.1.0(3mo ago)042MITPHPPHP ^8.4

Since Jan 13Pushed 3mo agoCompare

[ Source](https://github.com/ClausMunch/filament-logviewer)[ Packagist](https://packagist.org/packages/munch/filament-logviewer)[ RSS](/packages/munch-filament-logviewer/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (18)Versions (3)Used By (0)

Filament Logviewer
==================

[](#filament-logviewer)

A simple and powerful Filament plugin to view, filter, and manage Laravel log files directly from your admin panel.

Features
--------

[](#features)

- 📋 View all log files from `storage/logs`
- 🔍 Parse and display log entries with full context
- 🎯 Filter by log level (emergency, alert, critical, error, warning, notice, info, debug)
- 📅 Filter by date/time range
- 🔎 Search across log messages and context
- 🗑️ Delete individual or multiple log files
- 🧹 Empty log files without deleting them
- 🎨 Color-coded log levels for easy identification
- ⚡ Optimized for large log files

Requirements
------------

[](#requirements)

- PHP 8.4+
- Laravel 12.0+
- Filament 4.0+

Installation
------------

[](#installation)

### Option A: From Packagist (Recommended)

[](#option-a-from-packagist-recommended)

Install via composer:

```
composer require munch/filament-logviewer
```

### Option B: Local Development

[](#option-b-local-development)

For local development, add this to your Laravel project's `composer.json`:

```
{
  "repositories": [
    {
      "type": "path",
      "url": "../filament-logviewer"
    }
  ]
}
```

Then require the package:

```
composer require munch/filament-logviewer:@dev
```

Usage
-----

[](#usage)

Register the plugin in your Filament Panel Provider (e.g., `app/Providers/Filament/AdminPanelProvider.php`):

```
use Munch\FilamentLogviewer\FilamentLogviewerPlugin;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            // ... other configuration
            ->plugins([
                FilamentLogviewerPlugin::make(),
            ]);
    }
}
```

The plugin will automatically register itself and appear in your Filament admin panel navigation under the "Settings" group.

Configuration
-------------

[](#configuration)

Publish the config file (optional):

```
php artisan vendor:publish --tag="filament-logviewer-config"
```

Customize the behavior in `config/filament-logviewer.php`:

```
return [
    // Path to log files
    'path' => storage_path('logs'),

    // Maximum file size to read (10MB default)
    'max_file_size' => 10 * 1024 * 1024,

    // Entries per page
    'per_page' => 50,

    // Navigation settings
    'navigation' => [
        'group' => 'Settings',
        'sort' => 100,
        'icon' => 'heroicon-o-document-text',
    ],

    // Date format
    'date_format' => 'Y-m-d H:i:s',

    // Log level colors
    'levels' => [
        'emergency' => ['label' => 'Emergency', 'color' => 'danger'],
        'alert' => ['label' => 'Alert', 'color' => 'danger'],
        'critical' => ['label' => 'Critical', 'color' => 'danger'],
        'error' => ['label' => 'Error', 'color' => 'danger'],
        'warning' => ['label' => 'Warning', 'color' => 'warning'],
        'notice' => ['label' => 'Notice', 'color' => 'info'],
        'info' => ['label' => 'Info', 'color' => 'success'],
        'debug' => ['label' => 'Debug', 'color' => 'gray'],
    ],
];
```

Features Detail
---------------

[](#features-detail)

### Log File Management

[](#log-file-management)

- **View All Logs**: Browse all log files in `storage/logs` with file size and last modified date
- **Delete Logs**: Remove individual or multiple log files
- **Empty Logs**: Clear log file contents without deleting the file

### Log Viewing &amp; Filtering

[](#log-viewing--filtering)

- **Detailed View**: Click "View" on any log file to see parsed entries
- **Filter by Level**: Filter logs by severity (emergency, alert, critical, error, warning, notice, info, debug)
- **Date Range Filter**: Filter logs by timestamp range
- **Search**: Global search across log messages and context
- **Auto-refresh**: Log viewer automatically refreshes every 30 seconds

### Log Entry Display

[](#log-entry-display)

Each log entry shows:

- Timestamp
- Log level (color-coded badge)
- Environment
- Message
- Context and stack traces (expandable)

Performance
-----------

[](#performance)

- Large files (&gt;10MB) are automatically handled with optimized reading
- Only the most recent entries are loaded for very large files
- Pagination prevents memory issues
- Configurable per-page limits

License
-------

[](#license)

MIT License

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance82

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~75 days

Total

2

Last Release

96d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67a2e41d9996b952a8b6e790f24ca6665b565f685af89a0fe434a90760928b2f?d=identicon)[ClausMunch](/maintainers/ClausMunch)

---

Top Contributors

[![ClausMunch](https://avatars.githubusercontent.com/u/701248?v=4)](https://github.com/ClausMunch "ClausMunch (29 commits)")

---

Tags

laravellogsadminfilamentlogviewer

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/munch-filament-logviewer/health.svg)

```
[![Health](https://phpackages.com/badges/munch-filament-logviewer/health.svg)](https://phpackages.com/packages/munch-filament-logviewer)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

274326.6k8](/packages/croustibat-filament-jobs-monitor)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[mradder/filament-logger

Audit logging, activity tracking, exports, alerts, and dashboards for Filament admin panels.

2317.4k](/packages/mradder-filament-logger)[finity-labs/fin-mail

A powerful email template manager and composer for Filament with dynamic token replacement, template versioning, and inline email sending.

284.5k1](/packages/finity-labs-fin-mail)

PHPackages © 2026

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