fixed logging of events and plugin hooks