Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.6: config/logging.php file is missing?

In the docs of Laravel 5.6 its stated here that one can config his logging channels in config/logging.php. I have updated from Larvel 5.5 to Laravel 5.6 but I could not find this config file.

Do I need to call a special artisan command for this or something like that?

like image 414
Adam Avatar asked Jul 15 '18 15:07

Adam


People also ask

Where is the log file in Laravel?

By default, Laravel is configured to create a single log file for your application, and this file is stored in app/storage/logs/laravel. log .

How do I enable error logs in Laravel?

Through your config/app. php , set 'debug' => env('APP_DEBUG', false), to true . Or in a better way, check out your . env file and make sure to set the debug element to true.

What is log :: info in Laravel?

The Laravel logging facilities provide a simple layer on top of the powerful Monolog library. By default, Laravel is configured to create daily log files for your application which are stored in the storage/logs directory. You may write information to the log like so: Log::info('This is some useful information. ');


1 Answers

This file didn't exist in 5.5.

You can find the original one here and copy-paste it into your project.

There is a complete upgrade guide here.

like image 93
SystemGlitch Avatar answered Sep 26 '22 07:09

SystemGlitch