Logging
Log channels, levels, and structured logging
Laravel logging supports multiple channels and severity levels for structured, searchable log output.
Eight severity levels from debug to emergency, following the PSR-3 standard.
Severity levels (high to low)
emergencydebug
Log stream
Press "Stream logs" to see entries flow in
Log channels
single
daily
slack
syslog
PHP
use Illuminate\Support\Facades\Log;
Log::emergency('System is down.');
Log::alert('Action required immediately.');
Log::critical('Critical failure in payment.');
Log::error('Failed to process order.');
Log::warning('Disk usage above 90%.');
Log::notice('User logged in from new device.');
Log::info('Order #1234 placed successfully.');
Log::debug('Query took 45ms.');Previous
37 / 37