Exporting logs to .csv and .xls