ruby with rails app to log events for eventual pattern search reporting