Laravel 8- Log viewer using LogViewer package

Share Me
  • 1
 Log viewer using LogViewer package

Today now in this tutorials, I will show you how to install log viewer package in laravel 8 application.

Here we can simply and easy to logviewer package in our laravel 8 application.

Laravel provides us log file that will store all runtime error exception or also any other error that get, so we can view all log file better by using LogViewer composer package. Here laravel store very logs on a log file. So now if it occurs any error, warning, alert etc that time it store in laravel log file. But it will store in error format, So here we can make it readable format now and also know how much error with a description. Now we can resolve it and then make it a better web application.

So we have to just need to install LogViewer package and all configurations so that we can customize LogViewer package. Now let’s start to install and configuration of LogViewer package.

Installation Of LogViewer Package:

Now we need to install LogViewer composer package by using following command in our laravel application. So just let’s run bellow command.

composer require arcanedev/log-viewer

that’s good , after successfully install package, we need to check to app.php configuration file.



return [
    'providers' => [
Configuration Of LogViewer Package:

Now we will generate configuration of LogViewer composer package like generate layout file, css file, config file etc. bellow command

Publish the Config and Translations Files
php artisan log-viewer:publish 

To force publishing

php artisan log-viewer:publish --force

Publishing the config only

php artisan log-viewer:publish --tag=config

Publishing the translations only

php artisan log-viewer:publish --tag=lang

Application requirements & log files check

php artisan log-viewer:check
Configuration Of Laravel Log:

now by default we have “stack” value in LOG_CHANNEL variable on our env file for log. So we need to change value stack into daily, so our package will display every day log. So let’s change it:



So now we are ready to to run this package. Now let’s run our example so run bellow command for quick run

php artisan serve

Open following URL:


You will get layout like as bellow:

Log viewer using LogViewer package
Log viewer using LogViewer package
Log viewer using LogViewer package

Read Also : Laravel 8 Mobile Number Verification Tutorial

I hope it will help you. Also you can follow us onĀ Facebook

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →