() => { const LOG_LEVELS = { LOG: [ 'WebSocket connection established', 'Generated JWT token for user', 'Session was invalidated after timeout', 'Sendgrid welcome email sent', ], INFO: [ 'Application listening on port 5000', 'CORS enabled - accepting requests from all origins', 'Bluetooth services started successfully', 'Module dependencies initialized (+32ms)', ], ERROR: [ 'Failed to connect to database', 'Failed to fetch data from /api/v1/items', ], }; return <LogsExplorer logs={LOG_LEVELS} /> };
Prop | Type | Default |
---|---|---|
logs | [level: string]: string[] | {} |