Get or stream logs
Changed onQuery historical runtime logs, or stream them using Server-Sent Events or JSONL.
When end is specified, returns paginated JSON. When end is omitted, streams logs in real-time using SSE or JSONL.
Requesting Accept: application/json without end will return an error.
Request
- Base URLhttps://api.deno.com
- AuthHTTP bearer
Path parameters
The app ID or slug. App slugs must be 3–32 characters long, may contain only lowercase letters, numbers, and hyphens, cannot contain underscores, must not start or end with a hyphen, must not have consecutive hyphens in positions 3 and 4, and cannot be a reserved slug. App IDs are UUIDs.
Query parameters
Start of the time range (ISO 8601)
End of the time range (ISO 8601). If omitted, logs are streamed in real-time
Filter logs by revision ID
Minimum log severity level
Full-text search query
The pagination cursor
The maximum number of items to return
Response
OK
Example response
{
"logs": [
{
"timestamp": "2024-01-15T10:30:00.123Z",
"level": "info",
"message": "Handling request",
"revision_id": "r2ysnrrhr352",
"region": "us-east-1"
},
{
"timestamp": "2024-01-15T10:30:00.456Z",
"level": "error",
"message": "Database connection failed",
"revision_id": "r2ysnrrhr352",
"region": "us-east-1"
}
],
"next_cursor": "eyJsYXN0X3RpbWVzdGFtcCI6..."
}Changes
- breaking
the
//response's property type changed from no type tostringfor status - info
for the
queryrequest parameterlevel, the type was generalized from no type tostring
- breaking