E
E
EVOSandru62020-05-28 01:30:17
Laravel
EVOSandru6, 2020-05-28 01:30:17

Why does Laravel throw a logging error in the Notification class?

Hi guys,
Please tell me why in this class:

class RegisterNotification extends Notification implements ShouldQueue


Can an error be triggered by calling Log::info?
Could this be related to queues?
In controllers, for example, everything is perfectly logged.

laravel.EMERGENCY: Unable to create configured logger. using emergency logger. {"exception":"[object] (InvalidArgumentException(code: 0): Log [] is not defined. at /var/www/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:168)

Standard config /logging.php is available. I cleared the caches.

If I remove implements ShouldQueue , then everything works correctly =(
But I don't want to lose queues because of a cant with logs.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question