logs from --log have extra line breaks.

Fixes a general problem in our logger class 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.