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.
7 Jan 19:44:54
[ERROR]
Failed to connect to database
7 Jan 19:28:14
[INFO]
Bluetooth services started successfully
7 Jan 19:11:34
[LOG]
Generated JWT token for user
7 Jan 18:54:54
[INFO]
Bluetooth services started successfully
7 Jan 18:38:14
[INFO]
CORS enabled - accepting requests from all origins
7 Jan 18:21:34
[INFO]
CORS enabled - accepting requests from all origins
7 Jan 18:04:54
[INFO]
Module dependencies initialized (+32ms)
7 Jan 17:48:14
[ERROR]
Failed to connect to database
7 Jan 17:31:34
[LOG]
Sendgrid welcome email sent
7 Jan 17:14:54
[LOG]
WebSocket connection established
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[]
{}