50 components available

Logs Explorer

October 2024
Login to access the code
A real-time animated stream of log messages with timestamped entries and status-based color coding.
31 Jan 20:48:26
[INFO]
CORS enabled - accepting requests from all origins
31 Jan 20:31:46
[INFO]
Application listening on port 5000
31 Jan 20:15:06
[LOG]
Generated JWT token for user
31 Jan 19:58:26
[LOG]
Generated JWT token for user
31 Jan 19:41:46
[INFO]
CORS enabled - accepting requests from all origins
31 Jan 19:25:06
[LOG]
Sendgrid welcome email sent
31 Jan 19:08:26
[INFO]
Application listening on port 5000
31 Jan 18:51:46
[INFO]
Bluetooth services started successfully
31 Jan 18:35:06
[INFO]
CORS enabled - accepting requests from all origins
31 Jan 18:18:26
[INFO]
CORS enabled - accepting requests from all origins
Playground
() => {
  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} />
};

Installation

Whoops, hang on for a sec
You don't have access to view this resource

API Props

PropTypeDefault
logs
[level: string]: string[]
{}