feat: implement error handling and logging in server hooks to capture and notify on 404 and 500 errors, enhancing server reliability and monitoring
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
Clock,
|
||||
Video,
|
||||
Building,
|
||||
Info
|
||||
Info,
|
||||
AlertCircle
|
||||
} from 'lucide-svelte';
|
||||
type HighlightVariant = 'solid' | 'outline';
|
||||
type FeatureIcon =
|
||||
@@ -29,7 +30,8 @@
|
||||
| 'userPlus'
|
||||
| 'clock'
|
||||
| 'video'
|
||||
| 'building';
|
||||
| 'building'
|
||||
| 'alertCircle';
|
||||
type PaletteKey = 'primary' | 'success' | 'secondary' | 'accent' | 'info' | 'error' | 'warning';
|
||||
|
||||
type TiRouteId =
|
||||
@@ -43,6 +45,7 @@
|
||||
| '/(dashboard)/ti/solicitacoes-acesso'
|
||||
| '/(dashboard)/ti/times'
|
||||
| '/(dashboard)/ti/notificacoes'
|
||||
| '/(dashboard)/ti/erros-servidor'
|
||||
| '/(dashboard)/ti/monitoramento'
|
||||
| '/(dashboard)/ti/configuracoes-ponto'
|
||||
| '/(dashboard)/ti/configuracoes-relogio'
|
||||
@@ -151,7 +154,8 @@
|
||||
userPlus: UserPlus,
|
||||
clock: Clock,
|
||||
video: Video,
|
||||
building: Building
|
||||
building: Building,
|
||||
alertCircle: AlertCircle
|
||||
};
|
||||
|
||||
// Removido: iconPaths substituído por iconComponents com Lucide
|
||||
@@ -294,6 +298,19 @@
|
||||
palette: 'success',
|
||||
icon: 'shieldCheck'
|
||||
},
|
||||
{
|
||||
title: 'Erros do Servidor',
|
||||
description:
|
||||
'Monitoramento e análise de erros 404 e 500 do servidor. Visualize histórico, estatísticas e detalhes dos erros registrados.',
|
||||
ctaLabel: 'Ver Erros',
|
||||
href: '/(dashboard)/ti/erros-servidor',
|
||||
palette: 'error',
|
||||
icon: 'alertCircle',
|
||||
highlightBadges: [
|
||||
{ label: '404/500', variant: 'solid' },
|
||||
{ label: 'Monitoramento', variant: 'outline' }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: 'LGPD - Proteção de Dados',
|
||||
description:
|
||||
|
||||
Reference in New Issue
Block a user