Issue 969 audit log

I would move this to the ApiApp class