Flush DefaultLogger after logging.

DefaultLogger did not correctly flush the writer after logging a message.  This
leads to partially logged messages.  This update flushes the writer after
logging a message.