Appending line to file with Golang Package log, not getting a new line.
<p>I am using the golang package "log" when I use log to write to a text file, it does not append a new line of text to the end. It puts everything inline. </p>

<p><a href="http://i.stack.imgur.com/5wJQD.png" rel="nofollow">This is how it looks.</a></p>

<p><a href="http://i.stack.imgur.com/5C7cO.png" rel="nofollow">How I would like it to look. </a></p>

<p>Current Code.</p>

<pre><code>f, err := os.OpenFile("D:\\temp2\\testlogfile.txt", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
if err != nil {
    Error.Fatalf("error opening file: %v", err)
}
defer f.Close()
multi := io.MultiWriter(os.Stdout, f)
log.SetOutput(multi)
log.Println("testy1")
log.Println("testy2")
</code></pre>

<p>Does anyone have any ideas? </p>