Create log_data

sets up to record data to csv format file