logs from --log have extra line breaks.

Fix problem where multiple .write() log consumers resulted in extra line breaks for the later ones.  
The specific bug at the moment was that logs from --log had extra line breaks.

Added a test for this.