Hi Niels,
Maybe you can use the Audit Trail for this? https://appstore.home.mendix.com/link/app/138/
Edit: Did not try it, though
don't think it is possible to create a generic java action which logs input parameters based upon the microflow being executed.
logging each input parameter will have a negative impact on performance, but you probably already knew that ;)