Added logging to SAPI events