Add IP logging to csv