Format log as tsv