PHPackages                             bert-w/laravel-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. bert-w/laravel-log-viewer

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

bert-w/laravel-log-viewer
=========================

A fast Laravel log viewer to read any of your log files.

v1.0.1(1y ago)7813↓50%MITBladePHP ^8.1CI passing

Since Apr 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bert-w/laravel-log-viewer)[ Packagist](https://packagist.org/packages/bert-w/laravel-log-viewer)[ RSS](/packages/bert-w-laravel-log-viewer/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (12)Used By (0)

bert-w/laravel-log-viewer
=========================

[](#bert-wlaravel-log-viewer)

[![Latest Stable Version](https://camo.githubusercontent.com/0f76fe455f499c30bac71cd477c361bcea392047bcf402191985ae5a9f149a9a/68747470733a2f2f706f7365722e707567782e6f72672f626572742d772f6c61726176656c2d6c6f672d7669657765722f762f737461626c65)](https://packagist.org/packages/bert-w/laravel-log-viewer)[![Total Downloads](https://camo.githubusercontent.com/ab95c6d8cd19054ce0949b6ffac3d5850ce4b893bbcee17e435e695ef38a2a90/68747470733a2f2f706f7365722e707567782e6f72672f626572742d772f6c61726176656c2d6c6f672d7669657765722f646f776e6c6f616473)](https://packagist.org/packages/bert-w/laravel-log-viewer)[![License](https://camo.githubusercontent.com/082778542ec71d4963ae6fd5e49e77e5e42cd8dd4b2bf9ab9f84847b54e045a3/68747470733a2f2f706f7365722e707567782e6f72672f626572742d772f6c61726176656c2d6c6f672d7669657765722f6c6963656e7365)](https://packagist.org/packages/bert-w/laravel-log-viewer)

A fast log file viewer for Laravel that is easy to add and configure.

Features
========

[](#features)

- Compatible with Laravel 8 + 9 + 10
- Read big log files with ease without reaching the memory limit
- Includable in your own blade templates, or using a predefined layout
- Bootstrap 3 + 4 + 5 templates
- Bootstrap 5 comes with a **Dark Mode** setting

Dark ModeLight Mode[![](https://github.com/bert-w/laravel-log-viewer/raw/master/art/dark.png?raw=true)](https://github.com/bert-w/laravel-log-viewer/blob/master/art/dark.png?raw=true)[![](https://github.com/bert-w/laravel-log-viewer/raw/master/art/light.png?raw=true)](https://github.com/bert-w/laravel-log-viewer/blob/master/art/light.png?raw=true)Installation
============

[](#installation)

1. Install package:

```
composer require bert-w/laravel-log-viewer
```

2. (This happens automatically, except if you bypass [package discovery](https://laravel.com/docs/master/packages#package-discovery)) Add the service provider to your `config/app.php`:

```
'providers' => [
    // ...
    BertW\LaravelLogViewer\LogViewerServiceProvider::class,
]
```

The service provider sets up the views, routes, configuration and authentication. A `\BertW\LaravelLogViewer\LogViewer::class`is also bound as a singleton to the service container. This allows you to inject the log viewer anywhere (for instance in your custom controller) using `$logViewer = app(\BertW\LaravelLogViewer\LogViewer::class)`. 3. a) (optional) Publish configuration file:

```
php artisan vendor:publish --provider=BertW\LaravelLogViewer\LogViewerServiceProvider
```

3. b) or copy it manually into `config/logviewer.php`:

```
