Need help with laravel-log-viewer?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

rap2hpoutre
2.6K Stars 314 Forks MIT License 213 Commits 23 Opened issues

Description

:dromedary_camel: Laravel log viewer

Services available

!
?

Need anything else?

Contributors list

# 18,712
PHP
Laravel
Mongoos...
Racket
120 commits
# 130,021
Laravel
lumen
PHP
log-vie...
7 commits
# 107,118
c-sharp
Shell
Laravel
log-vie...
6 commits
# 30,396
woocomm...
flex
php7
symfony...
3 commits
# 1,172
JavaScr...
Angular
Vanilla...
jQuery
3 commits
# 181,230
Laravel
PHP
log-vie...
Google
3 commits
# 44,301
cropper...
Swift
Objecti...
iOS
3 commits
# 200,629
Laravel
lumen
PHP
log-vie...
2 commits
# 118,978
PHP
Shell
Laravel
lumen
2 commits
# 100,683
PHP
Shell
scss-fr...
html5
2 commits
# 136,044
HTML
reactjs
swagger
openapi
2 commits
# 246,158
Laravel
lumen
PHP
log-vie...
1 commit
# 144,112
Electro...
PHP
Laravel
lumen
1 commit
# 162,569
PHP
Compose...
flat-fi...
Laravel
1 commit
# 267,788
Laravel
lumen
PHP
log-vie...
1 commit
# 125,389
PHP
decrypt
slim-fr...
curl
1 commit
# 276,472
Laravel
lumen
PHP
log-vie...
1 commit
# 276,836
Laravel
lumen
PHP
log-vie...
1 commit
# 139,779
Shell
Node.js
meteor
PHP
1 commit
# 158,253
PHP
Laravel
lumen
log-vie...
1 commit

Laravel log viewer

Packagist Packagist Packagist Scrutinizer Code Quality Build Status Codacy Badge Author

TL;DR

Log Viewer for Laravel 5, 6, 7 & 8 (still compatible with 4.2 too) and Lumen. Install with composer, create a route to

LogViewerController
. No public assets, no vendor routes, works with and/or without log rotate. Inspired by Micheal Mand's Laravel 4 log viewer (works only with laravel 4.1)

What ?

Small log viewer for laravel. Looks like this:

capture d ecran 2014-12-01 a 10 37 18

Install (Laravel)

Install via composer

bash
composer require rap2hpoutre/laravel-log-viewer

Add Service Provider to

config/app.php
in
providers
section
php
Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,

Add a route in your web routes file:

php 
Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\[email protected]');

Go to

http://myapp/logs
or some other route

Install (Lumen)

Install via composer

bash
composer require rap2hpoutre/laravel-log-viewer

Add the following in

bootstrap/app.php
:
php
$app->register(\Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class);

Explicitly set the namespace in

app/Http/routes.php
:
php
$router->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($router) {
    $router->get('logs', '[email protected]');
});

Advanced usage

Customize view

Publish

log.blade.php
into
/resources/views/vendor/laravel-log-viewer/
for view customization:
php artisan vendor:publish \
  --provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" \
  --tag=views

Edit configuration

Publish

logviewer.php
configuration file into
/config/
for configuration customization:
php artisan vendor:publish \
  --provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider"

Troubleshooting

If you got a

InvalidArgumentException in FileViewFinder.php
error, it may be a problem with config caching. Double check installation, then run
php artisan config:clear
.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.