Hello folks!
I'm interested to hear how you handle error logging in your app. Here's what I am trying to figure out:
I would like to add error handling to each API call. Some errors will be surfaced in the UI only, and some will be surfaced in the UI as well as recorded in an error_log table.
The problem is that some pages contain 2 or 3 API endpoints, and potentially each needs error handling.
Workflows do some of this, but a) I would have to re-create this on every page with API calls and b) they don't encapsulate the error logging api call.
Components do some of this (encapsulation) but I would need a workflow to set each attribute and then toggle an attribute that fires the error logging api call.
I'm sure I am not the first and pretty sure I am overlooking a simple solution. Any pointers highly appreciated - thanks!