Logging

Contextual Info

use Illuminate\Support\Facades\Log;
Log::info('User failed to login.', ['id' => $user->id]);

Log Facade

use Illuminate\Support\Facades\Log;
Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);

Levels

All the log levels defined in the RFC 5424 specification are available:

  • emergency
  • alert
  • critical
  • error
  • warning
  • notice
  • info
  • debug
Comments