PHPackages                             gboquizosanchez/filament-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. gboquizosanchez/filament-log-viewer

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

gboquizosanchez/filament-log-viewer
===================================

Filament Log Viewer

2.3.0(2mo ago)25154.3k↓31.1%134MITPHPPHP ^8.2|^8.3|^8.4CI passing

Since Apr 24Pushed 6d ago2 watchersCompare

[ Source](https://github.com/gboquizosanchez/filament-log-viewer)[ Packagist](https://packagist.org/packages/gboquizosanchez/filament-log-viewer)[ Docs](https://github.com/gboquizosanchez)[ RSS](/packages/gboquizosanchez-filament-log-viewer/feed)WikiDiscussions 2.x Synced 4d ago

READMEChangelog (10)Dependencies (13)Versions (51)Used By (4)

[![Log Viewer](https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f4cb.svg)](https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f4cb.svg)`gboquizosanchez/filament-log-viewer`
=====================================

[](#gboquizosanchezfilament-log-viewer)

**Log Viewer plugin for Filament panels**

[![Latest Stable Version](https://camo.githubusercontent.com/b3cf0360a4b2dd157b6e4c468319e9bfa4d0e93fe50ba8fb28e627547fb0dec4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67626f7175697a6f73616e6368657a2f66696c616d656e742d6c6f672d7669657765722e737667)](https://packagist.org/packages/gboquizosanchez/filament-log-viewer)[![Total Downloads](https://camo.githubusercontent.com/c7d1ca242f417e9c646c717714369f6401dd94daea5e3a45d27035868855f663/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67626f7175697a6f73616e6368657a2f66696c616d656e742d6c6f672d7669657765722e737667)](https://packagist.org/packages/gboquizosanchez/filament-log-viewer)[![PHP](https://camo.githubusercontent.com/321da254d7b028e4112d043890a9effa7aba0c756e0a42a4ed1894918a452e46/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/gboquizosanchez/filament-log-viewer)[![License: MIT](https://camo.githubusercontent.com/6fd529fdc57adf8eb89582bee619d571fd9037b380418c50bb57e9c91598e03b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d3232433535452e737667)](LICENSE.md)[![Tests](https://camo.githubusercontent.com/600447d23e0f73abc4988a83007993cf06dbbac7db0af553fd0a9c63d65a0b8f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54657374732d5065737425323076342d394332374230)](https://pestphp.com/)

---

*Browse, filter, and manage your Laravel log files directly inside your Filament panel.*

---

Overview
--------

[](#overview)

This plugin integrates a full-featured log viewer into any Filament panel. Browse log entries by level, filter by date, and inspect stack traces — all without leaving your admin interface.

Based on [ARCANEDEV LogViewer](https://github.com/ARCANEDEV/LogViewer).

[![Panel](https://raw.githubusercontent.com/gboquizosanchez/filament-log-viewer/refs/heads/main/arts/panel.jpg)](https://raw.githubusercontent.com/gboquizosanchez/filament-log-viewer/refs/heads/main/arts/panel.jpg)

---

Version compatibility
---------------------

[](#version-compatibility)

PluginFilament1.x3.x2.x4.x – 5.xImportant

Version 1.x **won't receive** any further updates.

---

📦 Installation
--------------

[](#-installation)

```
composer require gboquizosanchez/filament-log-viewer
```

Register the plugin in your panel provider (`app/Providers/Filament/AdminPanelProvider.php`):

```
->plugin(\Boquizo\FilamentLogViewer\FilamentLogViewerPlugin::make())
```

Optionally, publish the configuration file:

```
php artisan vendor:publish --provider="Boquizo\FilamentLogViewer\FilamentLogViewerServiceProvider"
```

Important

**Filament v4+ requires a custom theme.** Follow the [Filament docs](https://filamentphp.com/docs/4.x/styling/overview#creating-a-custom-theme) to set one up, then add this line to your theme's CSS source:

```
@source '../../../../vendor/gboquizosanchez/filament-log-viewer/resources/views/**/*.blade.php';
```

---

🔧 Drivers
---------

[](#-drivers)

By default, the plugin reads from the `LOG_CHANNEL` defined in your `.env`. You can override this with a dedicated environment variable:

```
FILAMENT_LOG_VIEWER_DRIVER=raw
```

DriverDescription`daily`Default — mirrors your `LOG_CHANNEL=daily` setting`single`Standard Laravel single-file driver`raw`Shows **all** log files; only available via `FILAMENT_LOG_VIEWER_DRIVER`> If `FILAMENT_LOG_VIEWER_DRIVER` is not set, the plugin falls back to `LOG_CHANNEL`.

---

⚙️ Configuration
----------------

[](#️-configuration)

All plugin options are chainable:

```
->plugins([
    \Boquizo\FilamentLogViewer\FilamentLogViewerPlugin::make()
        ->navigationGroup('System')
        ->navigationSort(2)
        ->navigationIcon(Heroicon::OutlinedDocumentText)
        ->navigationLabel('Log Viewer')
        ->timezone('Europe/Madrid')
        ->authorize(fn (): bool => auth()->user()->can('view-logs')),
])
```

### View in modal

[](#view-in-modal)

By default, clicking "View" opens the log in a full page. You can enable modal mode instead.

**Via `.env`:**

```
FILAMENT_LOG_VIEWER_VIEW_IN_MODAL=true
```

**Or programmatically:**

```
->plugins([
    \Boquizo\FilamentLogViewer\FilamentLogViewerPlugin::make()
        ->viewInModal(),
])
```

When using modal view, you may want to block direct URL access to the `ViewLog` page by registering a custom page that denies access:

```
->plugins([
    \Boquizo\FilamentLogViewer\FilamentLogViewerPlugin::make()
        ->viewInModal()
        ->viewLog(\App\Filament\LogViewer\Pages\ViewLogDenied::class),
])
```

---

🧩 Custom Pages
--------------

[](#-custom-pages)

You can extend the built-in pages to add your own behaviour.

**Custom log list** — e.g. auto-refresh every 30 seconds:

```
// app/Filament/Pages/CustomListLogs.php

namespace App\Filament\Pages;

use Boquizo\FilamentLogViewer\Pages\ListLogs as BaseListLogs;
use Filament\Tables\Table;

class CustomListLogs extends BaseListLogs
{
    protected static ?string $navigationLabel = 'Application Logs';
    protected static ?string $navigationGroup = 'Monitoring';

    public function table(Table $table): Table
    {
        return parent::table($table)
            ->defaultPaginationPageOption(25)
            ->poll('30s');
    }
}
```

**Custom log viewer** — e.g. add an export action:

```
// app/Filament/Pages/CustomViewLog.php

namespace App\Filament\Pages;

use Boquizo\FilamentLogViewer\Pages\ViewLog as BaseViewLog;
use Filament\Actions\Action;
use Filament\Support\Icons\Heroicon;

class CustomViewLog extends BaseViewLog
{
    protected function getHeaderActions(): array
    {
        return array_merge(parent::getHeaderActions(), [
            Action::make('export')
                ->label('Export to CSV')
                ->icon(Heroicon::OutlinedArrowDownTray)
                ->action(fn () => $this->exportToCsv()),
        ]);
    }

    private function exportToCsv(): void
    {
        // Custom export logic
    }
}
```

Then register your custom pages in the plugin:

```
->plugins([
    \Boquizo\FilamentLogViewer\FilamentLogViewerPlugin::make()
        ->listLogs(\App\Filament\Pages\CustomListLogs::class)
        ->viewLog(\App\Filament\Pages\CustomViewLog::class)
        ->navigationGroup('System')
        ->navigationSort(2)
        ->navigationIcon(Heroicon::DocumentText)
        ->navigationLabel('System Logs')
        ->timezone('Pacific/Auckland')
        ->authorize(fn (): bool => auth()->user()->hasAnyRole(['admin', 'developer'])),
])
```

---

🧪 Testing
---------

[](#-testing)

```
composer fix        # fix code style
composer static     # PHPStan analysis
composer coverage   # run tests with coverage
```

---

Contributing
------------

[](#contributing)

Contributions are welcome!

- 🐛 **Report bugs** via [GitHub Issues](https://github.com/gboquizosanchez/filament-log-viewer/issues/new)
- 💡 **Suggest features** or improvements
- 🔧 **Submit pull requests** with fixes or enhancements

---

Credits
-------

[](#credits)

- **Author**: [Germán Boquizo Sánchez](mailto:germanboquizosanchez@gmail.com)
- **Based on**: [ARCANEDEV LogViewer](https://github.com/ARCANEDEV/LogViewer)
- **Contributors**: [View all contributors](../../contributors)

---

📄 License
---------

[](#-license)

This package is open-source software licensed under the [MIT License](LICENSE.md).

###  Health Score

61

—

FairBetter than 98% of packages

Maintenance92

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~9 days

Recently: every ~36 days

Total

50

Last Release

6d ago

Major Versions

1.4.0 → 2.2.12025-12-14

1.4.1 → 2.2.22026-01-18

1.4.2 → 2.2.32026-02-03

1.4.3 → 2.3.02026-04-07

1.4.4 → 2.x-dev2026-06-29

PHP version history (4 changes)1.0.0PHP ^8.2|^8.3

1.0.1PHP ^8.2|^8.3|^8.4

1.1.0PHP ^8.3|^8.4

2.x-devPHP ^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20032391?v=4)[Germán Boquizo Sánchez](/maintainers/gboquizosanchez)[@gboquizosanchez](https://github.com/gboquizosanchez)

---

Top Contributors

[![gboquizosanchez](https://avatars.githubusercontent.com/u/20032391?v=4)](https://github.com/gboquizosanchez "gboquizosanchez (70 commits)")[![AzizEmir](https://avatars.githubusercontent.com/u/101357256?v=4)](https://github.com/AzizEmir "AzizEmir (2 commits)")[![marcogermani87](https://avatars.githubusercontent.com/u/998645?v=4)](https://github.com/marcogermani87 "marcogermani87 (2 commits)")[![rmartinoscar](https://avatars.githubusercontent.com/u/40749467?v=4)](https://github.com/rmartinoscar "rmartinoscar (2 commits)")[![uvera](https://avatars.githubusercontent.com/u/5598427?v=4)](https://github.com/uvera "uvera (1 commits)")[![YacoubAl-hardari](https://avatars.githubusercontent.com/u/94101869?v=4)](https://github.com/YacoubAl-hardari "YacoubAl-hardari (1 commits)")[![haerulyudaaditiya](https://avatars.githubusercontent.com/u/182839707?v=4)](https://github.com/haerulyudaaditiya "haerulyudaaditiya (1 commits)")[![kazaminosuke](https://avatars.githubusercontent.com/u/99616465?v=4)](https://github.com/kazaminosuke "kazaminosuke (1 commits)")

---

Tags

filament-pluginfilamentphplog-viewerlaravellog viewerfilament

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/gboquizosanchez-filament-log-viewer/health.svg)

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M307](/packages/laravel-horizon)[arcanedev/log-viewer

Provides a Log Viewer for Laravel

2.4k7.0M54](/packages/arcanedev-log-viewer)[jackiedo/log-reader

An easy log reader and management tool for Laravel

151430.9k4](/packages/jackiedo-log-reader)[noxoua/filament-activity-log

A Laravel package that simplifies activity logging in the Filament admin panel, with support for logging create, update, delete, and restore actions. It integrates with the 'spatie/laravel-activitylog' package and includes a modernized activity log viewing page.

7254.6k](/packages/noxoua-filament-activity-log)[kssadi/log-tracker

A powerful, intuitive, and efficient log viewer for Laravel applications.

296.3k](/packages/kssadi-log-tracker)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.6k1](/packages/melihovv-laravel-log-viewer)

PHPackages © 2026

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