Is it expected that my workers log every request URL they get executed for?
Is it expected that my workers log every request URL they get executed for? What is the easiest way to write to the logs in the UI dashboard view or is that not possible? console.log does not do the trick and we have not setup wrangler successfully yet. Is there an alterantive or is wrangler the way to go?
5 Replies
You can tail your logs for a worker or function in the dashboard, but it only logs out what's happened since you start tailing. No historical logs are shown. Wrangler tail works exactly the same way.
If you want long term logging there are many solutions, including logpush https://developers.cloudflare.com/workers/observability/logging/logpush/
Cloudflare Docs
Logpush · Cloudflare Workers docs
Send Workers Trace Event Logs to a supported third party, such as a storage or logging provider.
understood @Ian — to my question though:
— should I see every request URL in that tail ?
— should I see console.log logs appear in the tail ?
Yes to both
thanks @Ian