Workers
Logs
Logs endpoint reference.
List
Get list of tails currently deployed on a Worker.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
scriptName | string | Yes | Name of the script, used in URLs and route configuration. |
php
$response = $client->workers()->logs()->list('ACCOUNT_ID', 'SCRIPT_NAME');
Start
Starts a tail that receives logs and exception from a Worker.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
scriptName | string | Yes | Name of the script, used in URLs and route configuration. |
php
$response = $client->workers()->logs()->start('ACCOUNT_ID', 'SCRIPT_NAME');
Delete
Deletes a tail from a Worker.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
scriptName | string | Yes | Name of the script, used in URLs and route configuration. | |
id | string | Yes | Identifier for the tail. |
php
$response = $client->workers()->logs()->delete('ACCOUNT_ID', 'SCRIPT_NAME', 'ID');

