log stats to a file