Logs in worker

Do cloudflare have option to logs for worker , so that after publishing a worker we can able to if any thing went wrong or direct the flow of worker script in certain criteria. if yes then where we can find the logs for our worker

As of now the only way to read logs from your worker is by using the wrangler tail command and reading them in real-time.

For ensuring things don’t go wrong you should probably push data to a third party service like Sentry (maybe using pigeon) or otherwise just try/excepting and on an error webhook into a service like Discord or Slack.