I use APIs to connect to a database. It has an undefined amount of parameters, but will typically always include error id and error message.
I'm logging every transaction with the APIs, but I'm wondering if there's a better way. I just kinda send it all as raw data and then the date time.