PHPackages                             label84/laravel-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. label84/laravel-logviewer

AbandonedArchivedLibrary

label84/laravel-logviewer
=========================

Simple log viewer for your Laravel application.

v3.1.0(3y ago)104.2kMITPHPPHP ^8.0

Since Jan 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Label84/laravel-logviewer)[ Packagist](https://packagist.org/packages/label84/laravel-logviewer)[ RSS](/packages/label84-laravel-logviewer/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (7)Versions (12)Used By (0)

Warning

This package is no longer maintained.

We have decided to stop maintaining this package. We don't use this package anymore and don't have the time to maintain this package.

Feel free to fork our code and adapt it to your needs.

Laravel LogViewer
=================

[](#laravel-logviewer)

[![Latest Stable Version](https://camo.githubusercontent.com/e3f407752a7e741db91f791dbe501d9a782896abb035c9a7500384796d176341/68747470733a2f2f706f7365722e707567782e6f72672f6c6162656c38342f6c61726176656c2d6c6f677669657765722f762f737461626c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/label84/laravel-logviewer)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/219f32e1dfe910432d25fa14919cbae5e52c7aee2023679a28bab900863f6a8f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6162656c38342f6c61726176656c2d6c6f677669657765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/label84/laravel-logviewer)[![GitHub Workflow Status](https://camo.githubusercontent.com/f4be997ad33731e3fc6ffacb952f5aa4ac118f64ea30134fe8924a963585f8f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6162656c38342f6c61726176656c2d6c6f677669657765722f72756e2d74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/f4be997ad33731e3fc6ffacb952f5aa4ac118f64ea30134fe8924a963585f8f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6162656c38342f6c61726176656c2d6c6f677669657765722f72756e2d74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)

LogViewer enables you to view and filter your Laravel logs in the browser.

[![LogViewer screenshot](./docs/screenshot-default.png?raw=true "LogViewer Screenshot")](./docs/screenshot-default.png?raw=true)

- [Laravel Support](#laravel-support)
- [Installation](#installation)
- [Usage](#usage)
    - [Query filters](#query-filters)
    - [Settings](#settings)
    - [Examples](#examples)
- [Tests](#tests)
- [License](#license)

Laravel Support
---------------

[](#laravel-support)

VersionRelease10.x^3.09.x^3.08.x^2.1Installation
------------

[](#installation)

### 1. Require package

[](#1-require-package)

Add the package to your application.

```
composer require label84/laravel-logviewer
```

You can also manually update your composer.json.

### 2. Publish config file

[](#2-publish-config-file)

Add the config file to your application.

```
php artisan vendor:publish --provider="Label84\LogViewer\LogViewerServiceProvider" --tag="config"
```

#### 2.1 Publish the views (optional)

[](#21-publish-the-views-optional)

To change the default views, you can publish the views to your application.

```
php artisan vendor:publish --provider="Label84\LogViewer\LogViewerServiceProvider" --tag="views"
```

Usage
-----

[](#usage)

Visit the following url in your application: `/admin/logviewer`

You can change the url in the config file.

### Query filters

[](#query-filters)

You can filter the logs in the overview with query parameters - example `/admin/logviewer?date=today&message=kiss`.

ParameterValueExamplelevel=stringDEBUGdate=[Carbon](https://carbon.nesbot.com/docs)todayfrom=[Carbon](https://carbon.nesbot.com/docs)yesterdaytill=[Carbon](https://carbon.nesbot.com/docs)2021-01-01logger=stringlocalmessage=stringlove### Settings

[](#settings)

To use the package in your own Controllers you can use the following settings. If you use the default package features and views you probably won't need this.

#### 1. Set channel

[](#1-set-channel)

To dynamically set the channel:

```
use LogViewer;

LogViewer::setChannel(string $channel);
```

#### 2. Set path

[](#2-set-path)

To dynamically set the path:

```
use LogViewer;

LogViewer::setPath(string $path);
```

#### 3. Set file

[](#3-set-file)

To dynamically set the file:

```
use LogViewer;

LogViewer::setFile(string $file);
```

#### 4. Available methods

[](#4-available-methods)

The `LogViewerCollection` extends `Illuminate\Support\Collection` with the following methods:

- whereLevel(int|string $level)
- whereMinLevel(int|string $level)
- whereMaxLevel(int|string $level)
- whereDate(Carbon|string $date)
- whereDateFrom(Carbon|string $date)
- whereDateTill(Carbon|string $date)
- whereDateBetween(Carbon|string $startDate, Carbon|string $startDate)
- whereLogger(string|array $logger)
- whereMessage(string|array $query)
- whereNotMessage(string|array $query)
- whereUser(int $user)

### Examples

[](#examples)

#### Example 1

[](#example-1)

List all logs.

```
use LogViewer;

public function index(Request $request): View
{
    $items = LogViewer::logs()->paginate(50);

    return view('dashboard', compact('items'));
}
```

#### Example 2

[](#example-2)

List all logs created today with a minimum level of ERROR.

```
use Label84\LogViewer\Support\LogViewerLevel;
use LogViewer;

public function index(Request $request): View
{
    $items = LogViewer::logs()
        ->whereDate(today())
        ->whereMinLevel(LogViewerLevel::ERROR)
        ->paginate(50);

    return view('dashboard', compact('items'));
}
```

#### Example 3

[](#example-3)

List all logs with a minium level of DEBUG that contains the words 'Foo' and/or 'Bar'.

```
use Label84\LogViewer\Support\LogViewerLevel;
use LogViewer;

public function index(Request $request): View
{
    $items = LogViewer::logs()
        ->whereLevel(LogViewerLevel::DEBUG)
        ->whereMessage(['Foo', 'Bar'])
        ->paginate(50);

    return view('dashboard', compact('items'));
}
```

#### Levels

[](#levels)

LevelEmergency600Alert550Critical500Error400Warning300Notice250Info200Debug100Tests
-----

[](#tests)

```
composer analyse
composer test
```

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Recently: every ~94 days

Total

9

Last Release

1350d ago

Major Versions

v1.0.3 → v2.0.02021-08-15

v2.1.0 → v3.0.02022-02-13

PHP version history (3 changes)v1.0.0PHP ^7.2 || ^8.0

v2.0.0PHP ^7.4 || ^8.0

v3.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/78c37d1496f19445af6a812d2275c34bbd08dead68aebae70229d7ff0670ed85?d=identicon)[tjardo](/maintainers/tjardo)

---

Top Contributors

[![tjardoo](https://avatars.githubusercontent.com/u/31533540?v=4)](https://github.com/tjardoo "tjardoo (7 commits)")

---

Tags

laravellaravel-package

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/label84-laravel-logviewer/health.svg)

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

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.3M621](/packages/barryvdh-laravel-debugbar)[genealabs/laravel-caffeine

Keeping Your Laravel Forms Awake

9382.1M9](/packages/genealabs-laravel-caffeine)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k1](/packages/bjuppa-laravel-blog)[label84/laravel-mailviewer

View mails sent by Laravel in the browser

1429.5k](/packages/label84-laravel-mailviewer)

PHPackages © 2026

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