PHPackages                             aniket-magadum/laravel-log-lens - 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. aniket-magadum/laravel-log-lens

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

aniket-magadum/laravel-log-lens
===============================

A powerful Laravel log viewer and analyzer package.

v1.0.2(1mo ago)00MITPHPPHP ^8.3CI passing

Since Mar 21Pushed 1mo agoCompare

[ Source](https://github.com/aniket-magadum/laravel-log-lens)[ Packagist](https://packagist.org/packages/aniket-magadum/laravel-log-lens)[ Docs](https://github.com/aniket-magadum/laravel-log-lens)[ RSS](/packages/aniket-magadum-laravel-log-lens/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

🔍 Laravel Log Lens
==================

[](#-laravel-log-lens)

**A beautiful, dark-mode log viewer and analyzer for Laravel.**

Browse, search, filter, and resolve your application's log entries — all from a clean dashboard at `/log-lens`.

[![Latest Version on Packagist](https://camo.githubusercontent.com/4793f1cdafd07765e694b050b8aa5541656c4331ee51fe79df33462952694998/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e696b65742d6d61676164756d2f6c61726176656c2d6c6f672d6c656e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aniket-magadum/laravel-log-lens)[![PHP Version](https://camo.githubusercontent.com/93e348ca0701e914576dc85151a30f4673a5f6a2ad3add2ac638a409f57a0241/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d626c75653f7374796c653d666c61742d737175617265)](https://www.php.net)[![Laravel Version](https://camo.githubusercontent.com/6347ed5bbe50599b76b4dee28bba2e490f728928066aaa32e8a37426134f1dc1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31332e782d7265643f7374796c653d666c61742d737175617265)](https://laravel.com)[![License: MIT](https://camo.githubusercontent.com/422db9fd40f5831c765cf6530b6750c081b696bd18d904cf89554df98c676277/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/10c10038f32660c6b8db5ccd8501e1b78105842ead1afb7b4bae3bd82db81f7e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e696b65742d6d61676164756d2f6c61726176656c2d6c6f672d6c656e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aniket-magadum/laravel-log-lens)

---

Screenshot
----------

[](#screenshot)

[![Laravel Log Lens Dashboard](docs/screenshot.png)](docs/screenshot.png)

---

Features
--------

[](#features)

- **Dark UI dashboard** served at `/log-lens` (configurable prefix)
- **All 8 log levels** with colour-coded badges — `debug`, `info`, `notice`, `warning`, `error`, `critical`, `alert`, `emergency`
- **Multi-file log browsing** with a file selector dropdown
- **Full-text search** with multi-chip filtering
- **Context (CTX) filtering** — filter by key-value pairs from log context
- **Vendor vs. app stack trace highlighting** in exception entries
- **Resolve system** — mark individual log entries as resolved (persisted to disk)
- **Bulk resolve** — "Resolve all similar" resolves every entry sharing the same message in one click
- **Resolve filter toggle** — switch between All / Pending / Resolved with live entry counts
- **Shareable log links** — `?log=` auto-navigates to the exact entry, highlights it, and expands its details
- **Pagination** — configurable entries per page (default: 50)
- **Hostname display** in the header — always know which server you're viewing
- **Zero JS build step** — no Node.js or Vite required for the package itself

---

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

[](#requirements)

DependencyVersionPHP`^8.3`Laravel`^13.0`---

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

[](#installation)

Install the package via Composer:

```
composer require aniket-magadum/laravel-log-lens
```

The package is **auto-discovered** by Laravel — no need to register the service provider manually.

### Publish the config (optional)

[](#publish-the-config-optional)

```
php artisan vendor:publish --tag=log-lens-config
```

This publishes `config/log-lens.php` to your application's config directory.

---

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

[](#configuration)

After publishing, `config/log-lens.php` exposes the following options:

```
return [
    // Enable or disable the Log Lens dashboard entirely
    'enabled' => env('LOG_LENS_ENABLED', true),

    // URL prefix — dashboard accessible at /{route_prefix}
    'route_prefix' => env('LOG_LENS_PREFIX', 'log-lens'),

    // Middleware applied to all Log Lens routes
    // Recommended: add 'auth' to protect the dashboard in production
    'middleware' => ['web'],

    // Directory where your .log files are kept
    'storage_path' => storage_path('logs'),

    // Number of log entries displayed per page
    'per_page' => 50,
];
```

### Available environment variables

[](#available-environment-variables)

VariableDefaultDescription`LOG_LENS_ENABLED``true`Set to `false` to disable the dashboard`LOG_LENS_PREFIX``log-lens`URL prefix for the dashboard route---

Protecting the Dashboard
------------------------

[](#protecting-the-dashboard)

By default, Log Lens only applies the `web` middleware. **It is strongly recommended to add the `auth` middleware in production** to prevent unauthorised access to your logs.

Update `config/log-lens.php`:

```
'middleware' => ['web', 'auth'],
```

Or restrict to specific roles / gates using a custom middleware of your own.

---

Usage
-----

[](#usage)

### Accessing the dashboard

[](#accessing-the-dashboard)

Visit `http://your-app.test/log-lens` in your browser.

### Searching logs

[](#searching-logs)

Type any keyword into the search bar. Each term becomes a removable chip — combine multiple chips for AND-style filtering.

### Filtering by log level

[](#filtering-by-log-level)

Click any level badge (ALL, DEBUG, INFO, WARNING, ERROR, etc.) in the badge strip to filter to that level only.

### Filtering by context values

[](#filtering-by-context-values)

Use the **CTX filter** to filter entries by context key-value pairs attached to your log calls.

### Resolving entries

[](#resolving-entries)

Click the **Resolve** button on any row to mark it as resolved. Resolved entries are visually dimmed with a green checkmark. Resolved state is stored in `storage/app/log-lens-resolved.json`.

### Bulk resolve

[](#bulk-resolve)

Click **Resolve all similar** on any entry to resolve every log entry sharing the same message text in one action.

### Resolve filter toggle

[](#resolve-filter-toggle)

Use the **All / Pending / Resolved** toggle in the header to show only unresolved (Pending) or only resolved entries. Live counts are shown inline.

### Sharing a log entry

[](#sharing-a-log-entry)

Click the **Share** button on any row to copy a direct link to that entry. The link (`?log=`) will open the dashboard, navigate to the correct page, highlight the row, and auto-expand its detail panel.

---

Support
-------

[](#support)

If Log Lens saves you time and headaches, consider supporting its development:

[![Buy Me a Coffee](https://camo.githubusercontent.com/34edabe4d69bb75907fee3ed10971929befab2dee90d1100f9bacc2bc62bc988/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275792532304d6525323061253230436f666665652d6666646430303f7374796c653d666c61742d737175617265266c6f676f3d6275792d6d652d612d636f66666565266c6f676f436f6c6f723d626c61636b)](https://buymeacoffee.com/aniketmagadum)

---

License
-------

[](#license)

Log Lens is open-sourced software licensed under the **[MIT license](LICENSE)**.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Total

3

Last Release

52d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1274f5284d6c654dc57d7e1213558475c53ceaae89ba1142ab885255d37a3d00?d=identicon)[aniketmagadum](/maintainers/aniketmagadum)

---

Top Contributors

[![aniket-magadum](https://avatars.githubusercontent.com/u/48653948?v=4)](https://github.com/aniket-magadum "aniket-magadum (25 commits)")

---

Tags

loglaraveldebugginglog viewerlog-lens

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aniket-magadum-laravel-log-lens/health.svg)

```
[![Health](https://phpackages.com/badges/aniket-magadum-laravel-log-lens/health.svg)](https://phpackages.com/packages/aniket-magadum-laravel-log-lens)
```

###  Alternatives

[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[jackiedo/log-reader

An easy log reader and management tool for Laravel

151376.5k4](/packages/jackiedo-log-reader)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

6392.1k](/packages/masterro-laravel-mail-viewer)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.5k1](/packages/melihovv-laravel-log-viewer)[hryha/laravel-request-logger

A Laravel package to log requests and responses

102.2k](/packages/hryha-laravel-request-logger)[kssadi/log-tracker

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

264.8k](/packages/kssadi-log-tracker)

PHPackages © 2026

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