change format logging from CSV to JSON