We are working on a client application where our API are called from IOS mobile applcaition. In case of any issues with API, we need to trace the transcation errors from device to web applciation Is there any built in way to log Request and Response object for an API?
3 Answer(s)
-
0
Hi @omkarchoudhari
There is no out of the box solution for this. You can write a csutom action filter and log request/reponse pairs.
-
0
Hi omkarchoudhari,
I had a similar problem with hundreds of devices using Ionic 5 (cross platform). Try catching the errors in the app code and log them to Sentry. I was using a third party to code the Ionic app and I was able to monitor progress throughout development by analysing errors. A further option is to pull commonly used API call code into a Helper class in the Core module and implement a seperate AppService class for device API calls. You are then easily able to filter any device call errors in the Audit Logs.
Hope that helps. Bob
-
0
Thanks Bob :)