Your instructor, Justin, walks you through the changes in Laravel 5.6 with the addition of logging stacks and the improved ease of logging to multiple locations.
- [Speaker] Logging has changed…in a few key ways in Laravel.…As part of the five point six update.…To begin, we're going to have to make a change…to support the new logging features in our application.…Open up your browser to GitHub.com.…If you want to make this a little bit easier,…you can go to the Laravel GitHub site,…and find in the tree develop, go to config.…And then find the logging.php file.…
You want to select the raw content for this file.…You can select the entire content…if you're on windows or linux using control A.…Or on MAC OS using command A.…And then copy using control c.…Go to your text editor and we're going to…create a new file in config.…This file is going to be named logging.php.…
We'll paste in the content that we got…from the logging.php template from the Laravel GitHub site.…What's different about this logging system?…First off, it's been re-written…to use monolog under the hood.…Monolog is a package built on top of psr3,…that provides a logging engine…to log just about anywhere you might want.…
Share this video
Embed this video
Video: Logging stacks