Implement logging events and viewing events