Note: This library is under active development as I expand it to cover Cloudflare API. Consider the public API of this package a little unstable as I work towards a v1.0. See Coverage.

Tail Logs

Cloudflare API docs

List Tails

Get list of tails currently deployed on a Worker.

php
$response = $client->workers()->logs()->get('account_id', 'script_name');

Start Tail

Starts a tail that receives logs and exception from a Worker.

php
$response = $client->workers()->logs()->start('account_id', 'script_name');

Delete Tail

Deletes a tail from a Worker.

php
$response = $client->workers()->logs()->delete('account_id', 'script_name', 'log_id');