Added event logging to core.