Laravel Log Viewer Live
{{ $logPath ?? 'storage/logs/laravel.log' }}
Total Lines: {{ $totalLines ?? 0 }}
File Size: {{ $fileSize ?? 'N/A' }}
laravel.log Console Output
UTF-8
@forelse($logEntries as $index => $entry)
@php
$level = $entry['level'] ?? 'INFO';
$badgeBg = match($level) {
'ERROR', 'CRITICAL', 'ALERT', 'EMERGENCY' => 'bg-danger text-white',
'WARNING' => 'bg-warning text-dark',
'DEBUG' => 'bg-info text-dark',
default => 'bg-success text-white',
};
$textColor = match($level) {
'ERROR', 'CRITICAL', 'ALERT', 'EMERGENCY' => 'text-danger',
'WARNING' => 'text-warning',
'DEBUG' => 'text-info',
default => 'text-light',
};
@endphp
@endif
@empty
@endforelse
#{{ $index + 1 }}
@if(!empty($entry['timestamp']))
{{ $entry['timestamp'] }}
@endif
{{ $level }}
{{ $entry['message'] }}
@if(!empty($entry['context']))
Payload / Context Data:
{{ json_encode($entry['context'], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) }}
No logs found in laravel.log