Go SDKFeature Clients

Logs Client

Accessed via client.Logs() on the Hatchet client.

LogsClient

LogsClient provides methods for interacting with Hatchet's logs API. To write logs from inside a task, use the task context's Log method instead.

Functions

List

List retrieves the log lines for a given task run.

func (l *LogsClient) List(ctx context.Context, taskRunId uuid.UUID, opts *rest.V1LogLineListParams) (*rest.V1LogLineList, error)

Parameters:

NameType
ctxcontext.Context
taskRunIduuid.UUID
opts*rest.V1LogLineListParams

Returns:

Type
*rest.V1LogLineList
error

Last updated on August 24, 2026

On this page