PHP Snippet 1:
$this->app->alias('bugsnag.logger', \Illuminate\Contracts\Logging\Log::class);
$this->app->alias('bugsnag.logger', \Psr\Log\LoggerInterface::class);
PHP Snippet 2:
$this->app->alias('bugsnag.multi', \Illuminate\Contracts\Logging\Log::class);
$this->app->alias('bugsnag.multi', \Psr\Log\LoggerInterface::class);
PHP Snippet 3:
php artisan config:cache
PHP Snippet 4:
tail -f /var/log/apache2/error.log
PHP Snippet 5:
folder | Permission | ownership
storage | 775 | root:apache
storage/logs | 755 | root:apache
storage/logs | 775 | root:root
PHP Snippet 6:
storage/logs | 775 | root:apache
or
storage/logs | 755 | apache:apache
PHP Snippet 7:
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
],
PHP Snippet 8:
.env file
APP_LOG_LEVEL=debug
run in console
php artisan config:cache
PHP Snippet 9:
APP_LOG=daily
PHP Snippet 10:
chmod -R 755 storage
PHP Snippet 11:
echo "" > storage/logs/laravel.log