Skip to content

Commit

Permalink
log-viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
fe222004 committed Jul 8, 2024
1 parent 3f4d9e4 commit 72eb4e2
Show file tree
Hide file tree
Showing 43 changed files with 2,793 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
Arcanedev\LogViewer\LogViewerServiceProvider::class,
])->toArray(),

/*
Expand Down
77 changes: 77 additions & 0 deletions config/log-viewer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?php

use Arcanedev\LogViewer\Contracts\Utilities\Filesystem;
use Arcanedev\LogViewer\Contracts\Utilities\LogLevels as LogLevelsContract;

return [

'storage-path' => storage_path('logs'),

'pattern' => [
'prefix' => Filesystem::PATTERN_PREFIX, // 'laravel-'
'date' => Filesystem::PATTERN_DATE, // '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]'
'extension' => Filesystem::PATTERN_EXTENSION, // '.log'
],

'locale' => 'auto',

'theme' => 'bootstrap-5',

'route' => [
'enabled' => true,
'attributes' => [
'prefix' => 'log-viewer',
'middleware' => env('ARCANEDEV_LOGVIEWER_MIDDLEWARE') ? explode(',', env('ARCANEDEV_LOGVIEWER_MIDDLEWARE')) : null,
],
'show' => 'log-viewer::logs.show'
],

'per-page' => 30,

'download' => [
'prefix' => 'laravel-',
'extension' => 'log',
],

'menu' => [
'filter-route' => 'log-viewer::logs.filter',
'icons-enabled' => true,
],

'icons' => [
'all' => 'fa fa-fw fa-list',
'emergency' => 'fa fa-fw fa-bug',
'alert' => 'fa fa-fw fa-bullhorn',
'critical' => 'fa fa-fw fa-heartbeat',
'error' => 'fa fa-fw fa-times-circle',
'warning' => 'fa fa-fw fa-exclamation-triangle',
'notice' => 'fa fa-fw fa-exclamation-circle',
'info' => 'fa fa-fw fa-info-circle',
'debug' => 'fa fa-fw fa-life-ring',
],

'colors' => [
'levels' => [
'empty' => '#D1D1D1',
'all' => '#8A8A8A',
'emergency' => '#B71C1C',
'alert' => '#D32F2F',
'critical' => '#F44336',
'error' => '#FF5722',
'warning' => '#FF9100',
'notice' => '#4CAF50',
'info' => '#1976D2',
'debug' => '#90CAF9',
],
],

'highlight' => [
'^#\d+',
'^Stack trace:',
],

// Asegúrate de que esta parte esté correcta
'log_parsing_regex' => '/^\[(\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}\.?(\d{6}([\+-]\d\d:\d\d)?)?)\](.*?(\w+)\.|.*?)('
.implode('|', array_filter(LogLevelsContract::all()))
.')?: (.*?)( in [\/].*?:[0-9]+)?$/is',
];
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/ar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "تاريخ",
"The list of logs is empty!": "قائمة سجلات فارغة!",
"All": "الجميع",
"Emergency": "حالات الطوارئ",
"Alert": "إنذار",
"Critical": "حرج",
"Error": "خطأ",
"Warning": "تحذير",
"Notice": "ملاحظة",
"Info": "المعلومات",
"Debug": "التصحيح"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/bg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Дата",
"The list of logs is empty!": "Не са намерени логове!",
"All": "Всички",
"Emergency": "Emergency",
"Alert": "Alert",
"Critical": "Critical",
"Error": "Error",
"Warning": "Warning",
"Notice": "Notice",
"Info": "Info",
"Debug": "Debug"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/bn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "তারিখ",
"The list of logs is empty!": "কোন লগ পাওয়া যায়নি!",
"All": "সবগুলি",
"Emergency": "জরুরী",
"Alert": "সতর্ক",
"Critical": "সংকটপূর্ণ",
"Error": "ত্রুটি",
"Warning": "সতর্কতা",
"Notice": "নোটিস",
"Info": "তথ্য",
"Debug": "রুটি অনুসন্ধান"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Datum",
"The list of logs is empty!": "KeineLogDateiengefunden!",
"All": "Alle",
"Emergency": "Notfall",
"Alert": "Alarm",
"Critical": "Kritisch",
"Error": "Fehler",
"Warning": "Warnung",
"Notice": "Hinweis",
"Info": "Info",
"Debug": "Debug"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Fecha",
"The list of logs is empty!": "La lista del log está vacía!",
"All": "Todos",
"Emergency": "Emergencia",
"Alert": "Alerta",
"Critical": "Criticos",
"Error": "Errores",
"Warning": "Advertencia",
"Notice": "Aviso",
"Info": "Info",
"Debug": "Debug"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/et.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Kuupäev",
"The list of logs is empty!": "Logide nimekiri on tühi!",
"All": "Kõik",
"Emergency": "Erakorraline",
"Alert": "Häire",
"Critical": "Kriitiline",
"Error": "Viga",
"Warning": "Hoiatus",
"Notice": "Teade",
"Info": "Info",
"Debug": "Silumine"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/fa.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "تاریخ",
"The list of logs is empty!": "لیست لاگ ها خالی است!",
"All": "همه",
"Emergency": "اورژانسی",
"Alert": "اخطار",
"Critical": "بحرانی",
"Error": "خطا",
"Warning": "هشدار",
"Notice": "اعلان",
"Info": "اطلاعات",
"Debug": "دیباگ"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Date",
"The list of logs is empty!": "La liste des logs est vide !",
"All": "Tous",
"Emergency": "Urgence",
"Alert": "Alerte",
"Critical": "Critique",
"Error": "Erreur",
"Warning": "Avertissement",
"Notice": "Notice",
"Info": "Info",
"Debug": "Debug"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/he.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "תאריך",
"The list of logs is empty!": "רשימת הלוגים ריקה!",
"All": "הכל",
"Emergency": "חרום",
"Alert": "אזעקה",
"Critical": "קריטי",
"Error": "שגיאה",
"Warning": "אזהרה",
"Notice": "הודעה",
"Info": "מידע",
"Debug": "ניפוי"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/hu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Dátum",
"The list of logs is empty!": "A naplók listája üres!",
"All": "Összes",
"Emergency": "Vészhelyzet",
"Alert": "Riasztás",
"Critical": "Kritikus",
"Error": "Hiba",
"Warning": "Figyelmeztetés",
"Notice": "Értesítés",
"Info": "Információ",
"Debug": "Hibakeresés"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/hy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Ամսաթիվ",
"The list of logs is empty!": "Լոգերի ցուցակը դատարկ է։",
"All": "Բոլորը",
"Emergency": "Վթարային",
"Alert": "Նախազգուշացում",
"Critical": "Կրիտիկական",
"Error": "Սխալ",
"Warning": "Նախազգուշացում",
"Notice": "Ծանուցում",
"Info": "Տեղեկատվություն",
"Debug": "Կարգաբերում"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Tanggal",
"The list of logs is empty!": "Daftar Log Kosong",
"All": "Semua",
"Emergency": "Darurat",
"Alert": "Waspada",
"Critical": "Kritis",
"Error": "Kesalahan",
"Warning": "Peringatan",
"Notice": "Pemberitahuan",
"Info": "Info",
"Debug": "Debug"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Data",
"The list of logs is empty!": "L'elenco dei log è vuoto!",
"All": "Tutti",
"Emergency": "Emergenza",
"Alert": "Allarme",
"Critical": "Critico",
"Error": "Errore",
"Warning": "Avviso",
"Notice": "Notifica",
"Info": "Info",
"Debug": "Debug"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "日付",
"The list of logs is empty!": "ログリストが空です!",
"All": "すべて",
"Emergency": "緊急",
"Alert": "警戒",
"Critical": "致命的",
"Error": "エラー",
"Warning": "警告",
"Notice": "通知",
"Info": "情報",
"Debug": "デバッグ"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/ko.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "날짜",
"The list of logs is empty!": "로그가 없습니다.",
"All": "전체",
"Emergency": "긴급",
"Alert": "경고",
"Critical": "심각",
"Error": "오류",
"Warning": "주의",
"Notice": "알림",
"Info": "정보",
"Debug": "디버그"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/ms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Tarikh",
"The list of logs is empty!": "Senarai log kosong!",
"All": "Semua",
"Emergency": "Kecemasan",
"Alert": "Waspada",
"Critical": "Kritikal",
"Error": "Ralat",
"Warning": "Amaran",
"Notice": "Notis",
"Info": "Info",
"Debug": "Debug"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Datum",
"The list of logs is empty!": "De lijst met logs is leeg!",
"All": "Alle",
"Emergency": "Noodgeval",
"Alert": "Alarm",
"Critical": "Cruciaal",
"Error": "Error",
"Warning": "Waarschuwing",
"Notice": "Opmerking",
"Info": "Informatie",
"Debug": "Debug"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/pl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Data",
"The list of logs is empty!": "Lista logów jest pusta!",
"All": "Wszystkie",
"Emergency": "Awaryjne",
"Alert": "Alerty",
"Critical": "Krytyczne",
"Error": "Błędy",
"Warning": "Ostrzeżenia",
"Notice": "Warte uwagi",
"Info": "Informacje",
"Debug": "Debug"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/pt-BR.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Data",
"The list of logs is empty!": "A lista de logs está vazia!",
"All": "Todos",
"Emergency": "Emergência",
"Alert": "Alerta",
"Critical": "Crítico",
"Error": "Erro",
"Warning": "Aviso",
"Notice": "Notícia",
"Info": "Informação",
"Debug": "Debug"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/ro.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Dată",
"The list of logs is empty!": "Nu există niciun log!",
"All": "Toate",
"Emergency": "Urgență",
"Alert": "Alertă",
"Critical": "Critic",
"Error": "Eroare",
"Warning": "Pericol",
"Notice": "Avertisment",
"Info": "Informare",
"Debug": "Depanare"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "Дата",
"The list of logs is empty!": "Список журналов пуст!",
"All": "Все",
"Emergency": "Аварийная",
"Alert": "Предупреждение",
"Critical": "Критический",
"Error": "Ошибка",
"Warning": "Предупреждение",
"Notice": "Уведомление",
"Info": "Информация",
"Debug": "Отладка"
}
13 changes: 13 additions & 0 deletions lang/vendor/log-viewer/si.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Date": "දිනය",
"The list of logs is empty!": "සටහන් ලැයිස්තුව හිස්ය",
"All": "සියල්ල",
"Emergency": "හදිසි",
"Alert": "පරීක්ෂාකාරී",
"Critical": "අවදානම්",
"Error": "දෝෂය",
"Warning": "අවවාදය",
"Notice": "නිවේදනය",
"Info": "තොරතුරු",
"Debug": "නිදොස්කරණය"
}
Loading

0 comments on commit 72eb4e2

Please sign in to comment.