Added function for saving logs in CSV format (only for tables with static number of columns)