@extends('layouts.admin') @section('style') @parent @include('admin.system._style') @endsection @section('content') @php $levelLook = []; foreach (['errors' => 'is-bad', 'warnings' => 'is-warn', 'info' => 'is-live', 'debug' => 'is-quiet'] as $group => $class) { foreach (\App\Http\Controllers\Admin\SystemController::LEVEL_TABS[$group] as $lvl) { $levelLook[$lvl] = $class; } } $tabLabels = ['errors' => 'Errors', 'warnings' => 'Warnings', 'info' => 'Info', 'debug' => 'Debug']; $active = $filters['level'] ?? null; $search = $filters['q'] ?? null; $base = ['channel' => $channel, 'file' => $file]; $tabUrl = fn ($key) => route('admin.system.logs', array_merge($base, array_filter(['q' => $search, 'level' => $key])), false); $fileLabel = function ($name) { if (! preg_match('/(\d{4}-\d{2}-\d{2})/', $name, $m)) return $name; $day = \Carbon\Carbon::parse($m[1]); return $day->isToday() ? 'Today' : ($day->isYesterday() ? 'Yesterday' : $day->format('D, j M Y')); }; $size = function ($bytes) { $units = ['B', 'KB', 'MB', 'GB']; $i = $bytes > 0 ? min((int) floor(log($bytes, 1024)), 3) : 0; return round($bytes / (1024 ** $i), $i ? 1 : 0) . ' ' . $units[$i]; }; @endphp
storage/logs on {{ gethostname() }}. Other servers keep their own.storage/logs once something is logged.{{ $e['text'] }}
@if($long){{ $e['text'] }}@if(trim($e['stack']) !== '')
{{ $e['stack'] }}@endif