store snippet in csv on multiple rows and output to log file