Log latencies to a text file instead of standard output.