GET /api/logs
Get all logs.
DELETE /api/logs
Clear all logs.
GET /api/logs/stream
Stream logs in real-time.
Get All Logs
Retrieves all stored logs.- Endpoint:
/api/logs
- Method:
GET
- Success Response:
Clear Logs
Deletes all stored logs.- Endpoint:
/api/logs
- Method:
DELETE
- Success Response:
Stream Logs
Streams logs in real-time using Server-Sent Events (SSE). The connection will remain open, and new log entries will be sent as they occur.-
Endpoint:
/api/logs/stream
-
Method:
GET
-
Response Format: The stream sends events with a
data
field containing a JSON object. The first event hastype: 'initial'
and contains all historical logs. Subsequent events havetype: 'log'
and contain a single new log entry. -
Example Event: