Parameters
The ID of the job to query logs for.
Options for querying logs.
Options
job.WithCursor(cursor *job.Cursor)
Start the query after the cursor returned by a previous page.
job.WithLimit(limit int64)
Limit the total number of log records yielded by the sequence.
job.WithSortDirection(direction job.SortDirection)
Sort logs by time. Use
job.Ascending for oldest first or job.Descending for newest first.Returns
A sequence of log records. Each record includesTime, SeverityText, Body, trace IDs, span IDs, and structured attributes.