Added gen_event handler example that uses error_logging