Write processed logs to CSV files