PHPackages                             sultanul-arefin/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. sultanul-arefin/log-viewer

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

sultanul-arefin/log-viewer
==========================

See laravel logs with more beautiful and flexible way

1.4.1(3mo ago)082MITBlade

Since Apr 24Pushed 3mo agoCompare

[ Source](https://github.com/Sultanul-Arefin/laravel-log-viewer)[ Packagist](https://packagist.org/packages/sultanul-arefin/log-viewer)[ RSS](/packages/sultanul-arefin-log-viewer/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (6)Used By (0)

Laravel Log Viewer
==================

[](#laravel-log-viewer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/75b22cd93c68c69bf984f193de09b12f20b27f47de75a967d63962a339cddfb5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73756c74616e756c2d61726566696e2f6c6f672d7669657765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sultanul-arefin/log-viewer)[![Total Downloads](https://camo.githubusercontent.com/45543c7f3337210f694be659ab473c1fd627fa5b00c8b0efa12d9c077fc5cc05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73756c74616e756c2d61726566696e2f6c6f672d7669657765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sultanul-arefin/log-viewer)[![License](https://camo.githubusercontent.com/0f83d2681153bf78339d7375bdc8a78218ef900adf54680648e1444f44aa7b89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73756c74616e756c2d61726566696e2f6c6f672d7669657765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sultanul-arefin/log-viewer)

A lightweight, secure, and beautiful Laravel log viewer. Easily monitor your application logs, search through entries, and view stack traces without leaving your browser.

---

Features
--------

[](#features)

- 📂 **View Logs**: Read your `laravel.log` file in a clean, tabular format.
- 🔍 **Search &amp; Filter**: Filter logs by message or level (Info, Error, Warning, etc.).
- 📑 **Pagination**: Support for large log files with customizable row counts (10-50 per page).
- 🔐 **Secure Access**: Built-in email-based authentication gate.
- 🧹 **Clear Logs**: One-click functionality to empty your log file.
- 📱 **Responsive**: Fully responsive UI built with Tailwind CSS.

---

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

[](#installation)

You can install the package via composer:

```
composer require sultanul-arefin/log-viewer
```

### For Laravel 11+

[](#for-laravel-11)

Add the service provider to your `bootstrap/providers.php` file:

```
return [
    // ...
    SultanulArefin\LogViewer\LogViewerServiceProvider::class,
];
```

### For Laravel 10 and Below

[](#for-laravel-10-and-below)

Add the service provider to your `config/app.php` file:

```
'providers' => [
    // ...
    SultanulArefin\LogViewer\LogViewerServiceProvider::class,
],
```

Security Configuration
----------------------

[](#security-configuration)

To protect your logs from unauthorized access, this package uses an email verification gate.

Add the authorized emails to your `.env` file, separated by commas:

```
LOG_VIEWER_EMAILS=admin@example.com,developer@yourdomain.com
```

Usage
-----

[](#usage)

Once installed, you can access the log viewer at:

```
your-domain.com/log-viewer

```

Authentication Flow
-------------------

[](#authentication-flow)

- **Redirection:** Upon visiting the URL, you will be redirected to a verification page.
- **Verification:** Enter an email address that is listed in your `LOG_VIEWER_EMAILS` env variable.
- **Access:** If valid, a session is created, and you gain access to the dashboard.
- **Logout:** Click the **Logout** button to securely clear your session.

Customizing the View (Optional)
-------------------------------

[](#customizing-the-view-optional)

If you wish to customize the look and feel of the log viewer, you can publish the views:

```
php artisan vendor:publish --tag="log-viewer-views"
```

The files will be copied to:

```
resources/views/vendor/log-viewer

```

Changelog
---------

[](#changelog)

Please see `CHANGELOG.md` for more information on what has changed recently.

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

[](#contributing)

Contributions are welcome!

If you have a feature request or find a bug, please open an issue or submit a pull request.

Credits
-------

[](#credits)

- **Author:** Sultanul Arefin
- All Contributors

License
-------

[](#license)

The MIT License (MIT). Please see the `LICENSE` file for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance82

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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 ~0 days

Total

5

Last Release

90d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13745842?v=4)[Md. Sultanul Arefin](/maintainers/sultanularefin)[@sultanularefin](https://github.com/sultanularefin)

---

Top Contributors

[![Sultanul-Arefin](https://avatars.githubusercontent.com/u/28809380?v=4)](https://github.com/Sultanul-Arefin "Sultanul-Arefin (5 commits)")

### Embed Badge

![Health badge](/badges/sultanul-arefin-log-viewer/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

2041.5M289](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2428.5M356](/packages/open-telemetry-sdk)

PHPackages © 2026

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