log output to csv,html