Skip to content

Commit f4a4c62

Browse files
kodster28thomasgauvin
authored andcommitted
Update logpush.mdx (#24363)
PCX-13740
1 parent 88175b8 commit f4a4c62

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/content/docs/workers/observability/logs/logpush.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ In Logpush, you can configure [filters](/logs/logpush/logpush-job/filters/) and
7575

7676
## Enable logging on your Worker
7777

78+
### Local development
79+
7880
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.
7981

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

108+
### Dashboard
109+
110+
To enable Logpush logging via the dashboard:
111+
112+
1. Log into the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
113+
2. Go to **Compute (Workers)**.
114+
3. Select your Worker.
115+
4. Go to **Settings** > **Observability**.
116+
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)).
117+
106118
## Limits
107119

108120
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.

0 commit comments

Comments
 (0)