Refactor log entry to be a record instead of a tuple