Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/content/docs/workers/observability/logs/logpush.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ In Logpush, you can configure [filters](/logs/logpush/logpush-job/filters/) and

## Enable logging on your Worker

### Local development

Enable logging on your Worker by adding a new property, `logpush = true`, to your Wrangler file. This can be added either in the top-level configuration or under an [environment](/workers/wrangler/environments/). Any new Workers with this property will automatically get picked up by the Logpush job.

<WranglerConfig>
Expand Down Expand Up @@ -103,6 +105,16 @@ curl --request PUT \
--form '"my-worker.js"=@./my-worker.js;type=application/javascript+module'
```

### Dashboard

To enable Logpush logging via the dashboard:

1. Log into the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
2. Go to **Compute (Workers)**.
3. Select your Worker.
4. Go to **Settings** > **Observability**.
5. For **Logpush**, select **Enable** (this is only available if you have already [created a logpush job](/workers/observability/logs/logpush/#create-a-logpush-job)).

## Limits

The `logs` and `exceptions` fields have a combined limit of 16,384 characters before fields will start being truncated. Characters are counted in the order of all `exception.name`s, `exception.message`s, and then `log.message`s.
Expand Down