Fix logging in ExampleApp onEvent