Skip to main content

build_logs

Creates, updates, deletes, gets or lists a build_logs resource.

Overview

Namebuild_logs
TypeResource
Iddeno.revisions.build_logs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
levelstringLog severity level (debug, info, warn, error)
messagestringLog message content
stepstringBuild step that produced this log (e.g. preparing, installing, building) (preparing, installing, building, deploying)
timelinestringTimeline slug, if the log is associated with a specific timeline
timestampstringISO 8601 timestamp of the log entry

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectrevisionstep, timelineStream 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.

NameDatatypeDescription
revisionstringRevision ID (globally unique)
stepstringFilter logs by build step
timelinestringFilter logs by timeline slug

SELECT examples

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 }}'
;