Add some logging to csv file.