Hi guys, I'm upgrading the laravel version from 5.5 to 5.6 and this error turned out to be [2024-08-27 09:14:08] laravel. EMERGENCY: Unable to create a configured answering machine. With the help of an emergency recorder. {"exception":"[object] (InvalidArgumentException(code: 0): Log[] is not defined. at /Users/user/www/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:181) [stacktrace]
How can I solve this? There's something about config/logging.php on the internet, but my app doesn't really have logging.php file in the configuration. Is it necessary to have one?
#Unable to create configured logger
2 messages · Page 1 of 1 (latest)
I created a logging.php in /config, the content in logging.php ```<?php
return [
'default' => env('LOG_CHANNEL', 'stack'),
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single'],
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'days' => 14,
],
],
];