changing log method to export csv type files