acu163693 fix for trailing newlines not actually being written to log file
apparently os.File.WriteString("\n") is a no-op in golang