Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Exception logging - Request and Response object logging for an API #10914


User avatar
0
omkarchoudhari created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @omkarchoudhari

    There is no out of the box solution for this. You can write a csutom action filter and log request/reponse pairs.

  • User Avatar
    0
    BobIngham created

    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

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks Bob :)