3 ms·
You can use any external logging service that has an HTTP API. Not ideal, but it works fine. I'm doing this with Cloudflare workers by sending access logs to
by the_duke 5y ago
You can use any external logging service that has an HTTP API.
Not ideal, but it works fine.
I'm doing this with Cloudflare workers by sending access logs to a self hosted Matomo analytics and error logs to Loggly.
But in general, Cloudflare isn't really suitable yet for general app development. They need a lot of additional services for that to become viable, imo.
- ryanjshaw 5y agoAre you thinking of Cloudflare Workers Sites? You can definitely do logging like that with Workers. But my understanding is that Workers Sites have been superseded [1] by Pages, and there are no logs for this new product other than at the Enterprise level. [1] Documentation for Workers Sites at https://workers.cloudflare.com/sites https://workers.cloudflare.com/sites redirects to Pages
- the_duke 5y agoYou can assign regular workers to your sites hosted with Pages. The workers act as a middleware. You can `fetch` the static content and then do any processing/logging you want.