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

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

achyutn/filament-log-viewer
===========================

A Filament package to view and manage Laravel logs.

v2.3.0(2mo ago)50164.9k↓15%15[2 issues](https://github.com/achyutkneupane/filament-log-viewer/issues)20MITPHPPHP &gt;=8.2CI passing

Since Jul 21Pushed 3w agoCompare

[ Source](https://github.com/achyutkneupane/filament-log-viewer)[ Packagist](https://packagist.org/packages/achyutn/filament-log-viewer)[ Fund](https://www.buymeacoffee.com/achyutn)[ Fund](https://buymemomo.com/achyut)[ RSS](/packages/achyutn-filament-log-viewer/feed)WikiDiscussions filament-v5 Synced 2d ago

READMEChangelog (10)Dependencies (22)Versions (59)Used By (20)

Filament Log Viewer
===================

[](#filament-log-viewer)

[![Filament Log Viewer](https://camo.githubusercontent.com/bd61fba29afb6473f1918789955117a66e1bed20b90868c2d6c274477ce7e8aa/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f46696c616d656e742532304c6f672532305669657765722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6163687975746e25324666696c616d656e742d6c6f672d766965776572267061747465726e3d686964656f7574267374796c653d7374796c655f32266465736372697074696f6e3d412b46696c616d656e742b7061636b6167652b746f2b766965772b616e642b6d616e6167652b4c61726176656c2b6c6f67732e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313735707826696d616765733d646f63756d656e742d7265706f7274)](https://camo.githubusercontent.com/bd61fba29afb6473f1918789955117a66e1bed20b90868c2d6c274477ce7e8aa/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f46696c616d656e742532304c6f672532305669657765722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6163687975746e25324666696c616d656e742d6c6f672d766965776572267061747465726e3d686964656f7574267374796c653d7374796c655f32266465736372697074696f6e3d412b46696c616d656e742b7061636b6167652b746f2b766965772b616e642b6d616e6167652b4c61726176656c2b6c6f67732e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313735707826696d616765733d646f63756d656e742d7265706f7274)

[![Packagist Version](https://camo.githubusercontent.com/a79eb81c299421a7298136387d14c9282ad79eba55b82755ec7bd4e8fc4540a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d4c617465737425323056657273696f6e)](https://camo.githubusercontent.com/a79eb81c299421a7298136387d14c9282ad79eba55b82755ec7bd4e8fc4540a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d4c617465737425323056657273696f6e)[![Packagist Downloads](https://camo.githubusercontent.com/0a476fe5f7042a071e72c7d6b573895531e216693383abfe93cd23d78ef3e95a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d5061636b6167697374253230446f776e6c6f616473)](https://camo.githubusercontent.com/0a476fe5f7042a071e72c7d6b573895531e216693383abfe93cd23d78ef3e95a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d5061636b6167697374253230446f776e6c6f616473)[![Packagist Stars](https://camo.githubusercontent.com/7e6a13dbe01f10298fda9086a6f612dad179f14cdb0835d7c52f48e118c1affd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d5374617273)](https://camo.githubusercontent.com/7e6a13dbe01f10298fda9086a6f612dad179f14cdb0835d7c52f48e118c1affd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6163687975746e2f66696c616d656e742d6c6f672d7669657765723f6c6162656c3d5374617273)[![Quality Gate Status](https://camo.githubusercontent.com/9f4d64703a90c15b7bdcd1902945078f47fe55473ca4fd42aa9b829d9885badf/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6163687975746b6e657570616e655f66696c616d656e742d6c6f672d766965776572266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=achyutkneupane_filament-log-viewer)[![Lint & Test PR](https://github.com/achyutkneupane/filament-log-viewer/actions/workflows/prlint.yml/badge.svg)](https://github.com/achyutkneupane/filament-log-viewer/actions/workflows/prlint.yml)[![Bump version](https://github.com/achyutkneupane/filament-log-viewer/actions/workflows/tagrelease.yml/badge.svg)](https://github.com/achyutkneupane/filament-log-viewer/actions/workflows/tagrelease.yml)

A Filament plugin to read and display Laravel log files in a clean, searchable table with stack traces and filtering.

Refer to [version compatibility table](#filament-compatibility) below to ensure you are using the correct version of this package with your Filament installation.

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

[](#installation)

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

Register the plugin inside your Filament panel:

```
use AchyutN\FilamentLogViewer\FilamentLogViewer;

return $panel
    ->plugins([
        FilamentLogViewer::make(),
    ]);
```

### Laravel Boost Integration

[](#laravel-boost-integration)

This package provides a Laravel Boost skill for AI-assisted development. When you install Laravel Boost in your project, the skill will be automatically discovered and made available to AI agents.

See [Laravel Boost documentation](https://laravel.com/docs/boost) for more details.

Usage
-----

[](#usage)

After installation, visit `/logs` in your Filament panel. You will see a table of log entries.

### Configuration

[](#configuration)

You can configure the maximum file size limit for log files to be loaded and displayed. This helps prevent performance issues with very large log files.

The default file size limit is set to `2 MB`. To override these settings, you can set environment variables in your `.env` file:

```
LOG_MAX_SIZE_KB=20480
LOG_ENABLE_DELETE=false
LOG_ENABLE_COPY_MARKDOWN=false
LOG_COPY_MARKDOWN_LEVELS=error,warning

```

- Set `LOG_MAX_SIZE_KB` to the maximum log file size in kilobytes (e.g., `20480` for 20 MB).
- Set `LOG_ENABLE_DELETE=false` in production to disable the **Clear Logs** button and protect log files from accidental deletion.
- Set `LOG_ENABLE_COPY_MARKDOWN=false` to disable the **Copy as Markdown** button.
- Set `LOG_COPY_MARKDOWN_LEVELS` to comma-separated list of log levels that show the copy button (e.g., `error,warning` or just `error`).

Or, you can publish the configuration file and update the `max_log_file_size` value as needed:

```
php artisan vendor:publish --tag=filament-log-viewer-config
```

Then, in your published `config/filament-log-viewer.php` file:

```
return [
    // Set max file size to 20 MB
    'max_log_file_size' => env('LOG_MAX_SIZE_KB', 20480),

    // Disable deleting logs from the UI
    'enable_delete' => env('LOG_ENABLE_DELETE', false),

    // Disable copying logs as markdown
    'enable_copy_markdown' => env('LOG_ENABLE_COPY_MARKDOWN', true),

    // Show copy button for these log levels (comma-separated)
    'copy_markdown_levels' => explode(',', env('LOG_COPY_MARKDOWN_LEVELS', 'error')),
];
```

### Table Columns

[](#table-columns)

- **Log Level** – Badge with color mapped from log level
- **Environment** *(Toggleable)* – Application environment (`local`, `production`, etc.)
- **File** *(Toggleable)* – Log file name (e.g., `laravel.log`)
- **Message** – Short summary of the log
- **Occurred** – Human-readable date/time
- **Copy as Markdown** – Action to copy log details in a clean Markdown format.

[![Table Preview](https://camo.githubusercontent.com/2a5a39d17aff6cd3837b5e142d184cdada85bd1c5ebaf1b89b404aab03e65423/68747470733a2f2f68616d726f63646e2e636f6d2f3735716c5247455472726936)](https://camo.githubusercontent.com/2a5a39d17aff6cd3837b5e142d184cdada85bd1c5ebaf1b89b404aab03e65423/68747470733a2f2f68616d726f63646e2e636f6d2f3735716c5247455472726936)

Click the view action to inspect stack traces.

[![Stack Tracing](https://camo.githubusercontent.com/86f5a846faeffcbd17dd051ecd9153928e69d0feaf420c4aeb0f3d0d5ce5c81f/68747470733a2f2f68616d726f63646e2e636f6d2f77504b7361716f5848354834)](https://camo.githubusercontent.com/86f5a846faeffcbd17dd051ecd9153928e69d0feaf420c4aeb0f3d0d5ce5c81f/68747470733a2f2f68616d726f63646e2e636f6d2f77504b7361716f5848354834)

### Mail Preview

[](#mail-preview)

If your logs contain mail messages, you can preview them directly from the table. You can click on `Mail` tab which is visible only if mail are present.

[![Mail Preview](https://camo.githubusercontent.com/4ff9877305452acc82879bafc7040070ca4d01a727041cd038b01ffa91ee957e/68747470733a2f2f68616d726f63646e2e636f6d2f68727235423247704b536b65)](https://camo.githubusercontent.com/4ff9877305452acc82879bafc7040070ca4d01a727041cd038b01ffa91ee957e/68747470733a2f2f68616d726f63646e2e636f6d2f68727235423247704b536b65)

### Filters

[](#filters)

#### Log Levels

[](#log-levels)

You can filter the logs according to log level. The filters are available as tabs above the table:

[![Log level Filters](https://camo.githubusercontent.com/0fda10c87f46084fe1cad0c7dbc9e4e53fc82f3ff6498f8a8a7e9b72ac47a55b/68747470733a2f2f68616d726f63646e2e636f6d2f77707a70777372765a617870)](https://camo.githubusercontent.com/0fda10c87f46084fe1cad0c7dbc9e4e53fc82f3ff6498f8a8a7e9b72ac47a55b/68747470733a2f2f68616d726f63646e2e636f6d2f77707a70777372765a617870)

#### Date

[](#date)

You can filter logs by date using the date picker in the top right corner of the table. This allows you to select a specific date range to view logs.

[![Date Filter](https://camo.githubusercontent.com/a733d6beee75c4c53801bfeeb124c30ce9e32afbf137bb18b496a066577c7fa2/68747470733a2f2f68616d726f63646e2e636f6d2f616d5f52416a325651486947)](https://camo.githubusercontent.com/a733d6beee75c4c53801bfeeb124c30ce9e32afbf137bb18b496a066577c7fa2/68747470733a2f2f68616d726f63646e2e636f6d2f616d5f52416a325651486947)

#### Toggle Columns

[](#toggle-columns)

You can toggle the visibility of the **Environment** and **File** columns by clicking the eye icon in the top right corner of the table.

[![Toggle Columns](https://camo.githubusercontent.com/4d9da7ff56d43420de996e93b73ec15ccfac5003685564215c98f13754b249c4/68747470733a2f2f68616d726f63646e2e636f6d2f7134655a4d39376274556632)](https://camo.githubusercontent.com/4d9da7ff56d43420de996e93b73ec15ccfac5003685564215c98f13754b249c4/68747470733a2f2f68616d726f63646e2e636f6d2f7134655a4d39376274556632)

### Authorization

[](#authorization)

You can make a boolean check to authorize the log viewer. It will be helpful if you want to show/hide the log viewer for certain cases.

#### Example

[](#example)

You simply return a `boolean` or `Closure` which evaluates to a `boolean`.

```
FilamentLogViewer::make()
    ->authorize(true);

// or

FilamentLogViewer::make()
    ->authorize(fn (): bool => auth()->user()->is_admin);
```

If you are using [filament-sheild](https://github.com/bezhanSalleh/filament-shield) or any other external services for authorization, you can use a `Closure` with permission check:

```
FilamentLogViewer::make()
    ->authorize(fn (): bool => auth()->check() && auth()->user()->can('View:LogTable'));
```

Extending
---------

[](#extending)

You can customize navigation label, icon, sort, etc. using:

```
use AchyutN\FilamentLogViewer\FilamentLogViewer;

FilamentLogViewer::make()
    ->authorize(fn () => auth()->check())
    ->registerNavigation(true)
    ->navigationGroup('System')
    ->navigationIcon('heroicon-o-document-text')
    ->navigationLabel('Log Viewer')
    ->navigationSort(10)
    ->navigationUrl('/logs')
    ->pollingTime(null); // Set to null to disable polling
```

Set `->registerNavigation(false)` if you want to hide Log Viewer from the sidebar while still linking to it directly (for example, from a custom dashboard action).

Localization
------------

[](#localization)

Filament Log Viewer includes built-in translations for:

- [English](src/resources/lang/en/log.php)
- [Arabic](src/resources/lang/ar/log.php)
- [German](src/resources/lang/de/log.php)
- [Spanish](src/resources/lang/es/log.php)
- [Persian](src/resources/lang/fa/log.php)
- [French](src/resources/lang/fr/log.php)
- [Hebrew](src/resources/lang/he/log.php)
- [Italian](src/resources/lang/it/log.php)
- [Portuguese (Portugal)](src/resources/lang/pt/log.php)
- [Portuguese (Brazil)](src/resources/lang/pt_BR/log.php)

Translations are applied automatically based on your application's current locale.

> Missing your language? Feel free to [submit a PR](https://github.com/achyutkneupane/filament-log-viewer/pulls) to add it!

Filament Compatibility
----------------------

[](#filament-compatibility)

VersionFilament Version[`^2.x`](https://github.com/achyutkneupane/filament-log-viewer/tree/filament-v5)Filament v5[`^1.x`](https://github.com/achyutkneupane/filament-log-viewer/tree/filament-v4)Filament v4[`^0.x`](https://github.com/achyutkneupane/filament-log-viewer/tree/filament-v3)Filament v3Make sure you're using the appropriate version of this package for your Filament installation.

License
-------

[](#license)

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

Changelog
---------

[](#changelog)

See the [CHANGELOG](CHANGELOG.md) for details on changes made in each version.

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

[](#contributing)

Contributions are welcome! Please create a pull request or open an issue if you find any bugs or have feature requests.

Support
-------

[](#support)

If you find this package useful, please consider starring the repository on GitHub to show your support.

###  Health Score

61

—

FairBetter than 98% of packages

Maintenance91

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community34

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 94% 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 ~5 days

Recently: every ~22 days

Total

50

Last Release

66d ago

Major Versions

v0.7 → v1.62025-11-28

v1.6.1 → v2.0.02026-01-16

v1.7.0 → v2.1.12026-01-30

v1.7.1 → v2.2.02026-03-31

v1.8.0 → v2.3.02026-04-28

PHP version history (2 changes)v0.0.1PHP &gt;=8.1

v0.2.2PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52259760?v=4)[achyutn](/maintainers/achyutn)[@AchyutN](https://github.com/AchyutN)

---

Top Contributors

[![achyutkneupane](https://avatars.githubusercontent.com/u/30431426?v=4)](https://github.com/achyutkneupane "achyutkneupane (440 commits)")[![ahmed-rashad-alnaggar](https://avatars.githubusercontent.com/u/131385452?v=4)](https://github.com/ahmed-rashad-alnaggar "ahmed-rashad-alnaggar (10 commits)")[![clnt](https://avatars.githubusercontent.com/u/19330442?v=4)](https://github.com/clnt "clnt (4 commits)")[![produktive](https://avatars.githubusercontent.com/u/21110476?v=4)](https://github.com/produktive "produktive (3 commits)")[![dipesh79](https://avatars.githubusercontent.com/u/63183800?v=4)](https://github.com/dipesh79 "dipesh79 (2 commits)")[![amidesfahani](https://avatars.githubusercontent.com/u/61671721?v=4)](https://github.com/amidesfahani "amidesfahani (2 commits)")[![relisiuol](https://avatars.githubusercontent.com/u/49282232?v=4)](https://github.com/relisiuol "relisiuol (1 commits)")[![saythe0](https://avatars.githubusercontent.com/u/112276627?v=4)](https://github.com/saythe0 "saythe0 (1 commits)")[![bilogic](https://avatars.githubusercontent.com/u/946010?v=4)](https://github.com/bilogic "bilogic (1 commits)")[![FaridAghili](https://avatars.githubusercontent.com/u/8607021?v=4)](https://github.com/FaridAghili "FaridAghili (1 commits)")[![inerba](https://avatars.githubusercontent.com/u/5882517?v=4)](https://github.com/inerba "inerba (1 commits)")[![jeffersongoncalves](https://avatars.githubusercontent.com/u/411493?v=4)](https://github.com/jeffersongoncalves "jeffersongoncalves (1 commits)")[![JensDeNijs](https://avatars.githubusercontent.com/u/79997030?v=4)](https://github.com/JensDeNijs "JensDeNijs (1 commits)")

---

Tags

debugfilamenthacktoberfestlaravellog-viewerlogsloglaravelfilamentViewer

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[alizharb/filament-activity-log

A powerful, feature-rich activity logging solution for FilamentPHP v4 &amp; v5 with timeline views, dashboard widgets, and revert actions.

2871.8k3](/packages/alizharb-filament-activity-log)[tapp/filament-authentication-log

Filament authentication log plugin.

51182.0k4](/packages/tapp-filament-authentication-log)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[a2insights/filament-saas

Filament Saas for A2Insights

171.7k](/packages/a2insights-filament-saas)

PHPackages © 2026

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