Checking what custom functions were executed

Checking what custom functions were executed

Is there a way to check through deluge code what specific custom functions were executed for a specific invoice? It would be like the comments & history section but in deluge so I would get a receive a JSON message. Is this possible through a record fetch or invoke url?