Use line buffering on log files to make sure the contents are written on
the disk.