muya / muya.github.io

muya's blog
https://blog.muya.co.ke
MIT License
3 stars 2 forks source link

Configuring Custom Logging in Laravel 5 #19

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Configuring Custom Logging in Laravel 5 – Muya's Blog

[mostly code] musings of a software developer from nairobi 🇰🇪 | learning

https://blog.muya.co.ke/configure-custom-logging-in-laravel-5/

muya commented 2 years ago

Comments Previously on Disqus

Originally by: Les Cornel Bogdan on 2015-05-20 14:18:44 Is going to get nicer:
http://laravel.com/docs/mas...

And I like this answer better:
https://laracasts.com/discu...

Originally by: eugenevdm on 2016-05-11 13:10:58 This is the error I get when following the example:

Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' in /var/www/vhosts/snowball.co.za/wh6.snowball... Stack trace: #0 /var/www/vhosts/snowball.co.za/wh6.snowball... ReflectionClass->__construct('log') #1 /var/www/vhosts/snowball.co.za/wh6.snowball... Illuminate\Container\Container->build('log', Array) #2 /var/www/vhosts/snowball.co.za/wh6.snowball... Illuminate\Container\Container->make('log', Array) #3 /var/www/vhosts/snowball.co.za/wh6.snowball... Illuminate\Foundation\Application->make('Psr\Log\LoggerI...') #4 /var/www/vhosts/snowball.co.za/wh6.snowball... in /var/www/vhosts/snowball.co.za/wh6.snowball... on line 779

Originally by: Corey A White on 2016-06-24 22:52:12 @eugenevdm:disqus after you have followed all these instructions, run composer install so that composer will rebuild your autoloader and add the new classes created to it.