changed LogWriter flushing behavior