How can I access logs for debugging my custom app in production?

You need to look into using server logs for your app and where you’re hosting it. You can either read through the logs or use an external service like Axiom, Logflare or Papertrail to have a stream of your logs.