Application level logging in a trigger