Add event logging to adventure xblock