Skip to main content

Laravel Library : Melihat Error Log Laravel Menggunakan Library Laravel Log Viewer




# Problem 

Error di laravel sering terjadi pada saat proses developing berjalan, pada saat terjadi error laravel memiliki notif atau pemberitahuan error secara gui, jadi developer bisa mengerti lebih jelas untuk membenarkan error yang terjadi. 

permasalahan yang seringkali terjadi pada pembuatan aplikasi berbasis laravel adalah saat website udah di upload ke server production dengan setting environment debug=false, maka saat terjadi error di suatu aksi tidak akan di munculkan errornya secara gui, apalagi yang mendapati error adalah user, jadi developer tidak akan tau ada error apabila user tidak melakukan laporan. nah untuk menyelesaikan masalah itu, kita dapat menggunakan error log viewer yang di buat oleh   , library ini berfungsi untuk mendata atau melist semua error yang terjadi saat aplikasi kita pada lingkungan production, jadi developer bisa memantau apabila terdapat error saat user menggunakan website kita. 

penampakannya seperti ini  : 


keren bukan? :D

some time you need to helped by someone that you didnt expected

naah untuk melakukan instalasi library di atas ke aplikasi kita akan saya terangkan di bawah, yuk lanjut.

pertama, buka repo ini , di sana ada langkah langkah untuk melakukan instalasi, seperti biasalah. kalo temen2 sudah sering bermain di bidang dependensi manager maka hal ini menjadi biasa saja. tapi biar afdol saya kasih tau juga langkah langkahnya. yup, next


# Install

install via composer

composer require rap2hpoutre/laravel-log-viewer
add service provider to config/app.php   in provider section


Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,


add route in your website route file

Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');


finally, go to your link app, eg : http://myapp/logs

thanks to read guys, slamat belajar. ^_^

Popular posts from this blog

Automatic API Documentation Swagger in Golang #GolangDev

pixabay.com In this article, I'll explain how to generate an API blueprint instantly using SwagGo in Golang. API blueprint is a document that contains a bunch of API endpoints, its slickly same as documentation but less description, it's allow another programmer to read and see all the available endpoint and try it out with sandbox feature. Swagger is one of the most used API blueprints right now, it's available in free but limited usage. if you wanna use the free credit, you need to understand YAML notation, you can read the example notation in swagger official documentation. but again, it's really hard and takes an expensive time to arranges all the notation to achieve a good API blueprint. fortunately, there are tools in Golang that allow us to generate the YAML notation and automatically generate the blueprint page with only using markup notation, and it's FREE unlimited for self-host, insane right? SwagGo tools are available here , the documentation is very cl...

OpenVPN Alternatif Solusi Menanggulangi Blokir dari KOMINFO

Sejak akhir juli 2022 kemaren indonesia di gegerkan dengan tindakan kominfo atas diblokirnya banyak platform digital karna tidak mendaftar PSE, terutama paypal dan plaform game (steam, epic game dll). keputusan ini semakin membuat netizen geram dikarenakan platform judi online malah disetujui untuk beroperasi karna sudah daftar PSE. Jujur menurut saya memang keputusan ini sejak awal saya dengar sudah mengada-ada karna sangat aneh memblokir semua platform digital yang jumlahnya tidak terhitung banyaknya dan hanya membolehkan akses platform yang sudah mendaftar yang jumlahnya hanya ratusan.  saya sebagai developer juga merasa aneh banget ini kebijakan apalagi platform development juga banyak yang di blacklist oleh kominfo seperti, github, gitlab, bitbucket, even website CDN pun di blacklist. astaga wkwkwk. anyway terlepas dari kebijakan konyol ini, saya mau berbagi tips cara agar tetep bisa mengakses semua platform tersebut tanpa ada halangan, yaitu dengan menggunakan VPN. banyak ban...

How to Deploy or Debug Apple Watch Apps in Physical Device #WatchOSDev

Hello everyone, this is my first tutorial about watchOS hope you enjoy. WatchOS is the operating system that support for apple watch, in this watchOS we could develop apps, but first thing that we must know, watch apps in 5 version and bellow are not support for independent apps, so the watch apps must develop with IOS apps in the seems time. but in WWDC 19, apple announce that WatchOS 6 will support independent apps, so the users could install apps directly from apple watch. in this tutorial we will learn about how to create first Apple Watch Apps and deploy it in physical device, why this tutorial matter, because deploying apps in apple watch is not seems as you deploy IOS apps in IPhone or IPad, there is several unique thing that you should know.  until this tutorial has written, I have not found anything tutorial that talking about this theme. so here it is. first thing we must create an xcode project. and choose WatchOS like bellow hit next, and...