You can enable application insights to your static web app. It allows you to investigate Failures, gives access to logs and metrics.
Refer https://learn.microsoft.com/en-us/azure/static-web-apps/monitor
You can set log levels to see what types of logs are logged.
Refer: https://learn.microsoft.com/en-us/azure/static-web-apps/monitor#limit-logging
Hope this helps