Add logging to event register and cancel.