Anyone?
How to change log levels?
In the Laravel 5.2 documentation it states the following:
By default, Laravel writes all log levels. In your production environment, you may wish to configure the default log level by adding the log_level option to your app.php configuration file. Laravel will then log all levels greater than or equal to the specified severity level. For example, a default log_level of error will log error, critical, alert, and emergency messages:
'log_level' => env('APP_LOG_LEVEL', 'debug'),
I've added the following to my app.php file:
'log_level' => env('APP_LOG_LEVEL', 'error'),
I also added the following to my .env file:
APP_LOG_LEVEL=error
After doing this, it still logs all levels when I'm expecting it to just log errors and above. Am I missing something? Is there something special that needs to be done to be able to specify log levels based on environment config?
Hi @Snapey - no, I mean that I added that line because that line didn't exist in my original Spark installation. I installed Spark with 5.2 back in April and that line must not have existed in that distribution for some reason, but I can see that it's now included in the latest 5.2 release. Thinking that it might have been an issue with an earlier 5.2 release, I did a composer update to update my installation to the latest 5.2.45 version. After updating with composer, I'm happy to say that everything is working as expected now :)
Please or to participate in this conversation.