For Workers & Pages, what is the name of the domain?
n/a
What is the issue or error you’re encountering
The documentation is confusing about how to get logs
What steps have you taken to resolve the issue?
I have an app deployed using @cloudflare/next-on-pages. I want to read the server logs. I cannot find anything on the Cloudflare dashboard for this, and I have found several conflicting sets of instructions on the docs, none of which seem to work.
Could anyone (ideally someone with a @cloudflare/next-on-pages setup) give me step-by-step instructions to pull the server logs? It seems like maybe the dashboard has diverged from the documentation.
Here is what I tried so far…
Real-time logs · Cloudflare Workers docs says I can view live streaming logs in Workers & Pages → Overview → Worker → Logs. It also says I can persist the logs using Workers Logs which has support for 200,000 per day on the free tier. There is not a section called “Overview”. When I go into my pages worker I don’t see a tab called Logs, just Deployments/Metrics/Custom Domains/Integrations/Settings. My wrangler.json has “observability”: { “enabled”: true } already enabled (guess it’s a default) but I also don’t see a Worker Logs section in the dashboard. (I do see “Analytics & Logs - Workers” — is that the same? — but it’s completely empty)
Debugging and logging · Cloudflare Pages docs says to go to Workers & Pages → Overview → pages deployment → Functions. Again, there is no tab called Functions, just Deployments/Metrics/Custom Domains/Integrations/Settings. Also, this page says logs cannot be persisted on the free tier even though the other page said they could. I’m confused if this is relevant to me and I’m not sure exactly the difference between Functions and Workers (apologies).
What are the steps to reproduce the issue?
- deploy next-on-pages site
- try to find how to view server logs