Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why the logs are empty in laravel telescope?

Tags:

laravel

As I understand laravel telescope will read my logs files that are stored in: storage/logs and show it inside laravel telescope's logs section..

But still when I try to see the logs, it always shows me an empty entries, even though I have some logs files in the storage..

How can I see the logs in storage/logs in laravel telescope?

like image 906
rook99 Avatar asked Nov 20 '25 11:11

rook99


1 Answers

No, telescope does not directly read your logs.

I've viewed the LogWatcher class and it turns that any logging event that includes an exception will get ignored. These are stored separately in the exceptions section within telescope. Only logs added via the Log facade will be shown in the log section.

If you'd like to have exceptions shown, then you must define your own LogWatcher.

like image 79
Bennett Avatar answered Nov 23 '25 01:11

Bennett