build_logs
Creates, updates, deletes, gets or lists a build_logs resource.
Overview
| Name | build_logs |
| Type | Resource |
| Id | deno.revisions.build_logs |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
level | string | Log severity level (debug, info, warn, error) |
message | string | Log message content |
step | string | Build step that produced this log (e.g. preparing, installing, building) (preparing, installing, building, deploying) |
timeline | string | Timeline slug, if the log is associated with a specific timeline |
timestamp | string | ISO 8601 timestamp of the log entry |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | revision | step, timeline | Stream build logs for a revision.<br /><br />Supports both Server-Sent Events (SSE) (Accept: text/event-stream) and JSON Lines (Accept: application/x-ndjson) formats. Use the Accept header to specify the desired format.<br /><br />The stream remains open during active builds and closes when the build completes. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
revision | string | Revision ID (globally unique) |
step | string | Filter logs by build step |
timeline | string | Filter logs by timeline slug |
SELECT examples
- list
Stream build logs for a revision.<br /><br />Supports both Server-Sent Events (SSE) (Accept: text/event-stream) and JSON Lines (Accept: application/x-ndjson) formats. Use the Accept header to specify the desired format.<br /><br />The stream remains open during active builds and closes when the build completes.
SELECT
level,
message,
step,
timeline,
timestamp
FROM deno.revisions.build_logs
WHERE revision = '{{ revision }}' -- required
AND step = '{{ step }}'
AND timeline = '{{ timeline }}'
;