Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel logs to error_log?

All logs from Laravel goes to storage/logs. Unfortunatelly I don't have access to this directory. I can't even check if there are any files or read them. I can only request logs which won't give me those files. I'll get error_log, acces_log etc. but not Laravel logs.

Is there any way to force laravel to use error_log($message) for any logs/exceptions?

like image 948
ElChupacabra Avatar asked Sep 05 '25 22:09

ElChupacabra


1 Answers

laravel log has four available settings : "single", "daily", "syslog", "errorlog";

you can change it on /project_root/config/app.php or .env

I think it will solve your problem if you set 'log' => "syslog".

like image 166
Neil Wong Avatar answered Sep 09 '25 03:09

Neil Wong