log: Use writeln!() instead of write!()

This was accidentally left out of the recent logging improvements.
auto merge of #13982 : alexcrichton/rust/more-logging, r=nikomatsakis

This was accidentally left out of the recent logging improvements.