Python SDKFeature Clients

Logs Client

Bases: BaseRestClient

The logs client is a client for interacting with Hatchet's logs API.

Methods:

NameDescription
aio_listList log lines for a given task run.
listList log lines for a given task run.

Functions

aio_list

List log lines for a given task run.

Parameters:

NameTypeDescriptionDefault
task_run_idstrThe ID of the task run to list logs for.required
limitintMaximum number of log lines to return (default: 1000).1000
sincedatetime | NoneThe start time to get logs for.None
untildatetime | NoneThe end time to get logs for.None

Returns:

TypeDescription
V1LogLineListA list of log lines for the specified task run.

list

List log lines for a given task run.

Parameters:

NameTypeDescriptionDefault
task_run_idstrThe ID of the task run to list logs for.required
limitintMaximum number of log lines to return (default: 1000).1000
sincedatetime | NoneThe start time to get logs for.None
untildatetime | NoneThe end time to get logs for.None

Returns:

TypeDescription
V1LogLineListA list of log lines for the specified task run.

Last updated on September 1, 2026

On this page