split Flush(w) to Dump(w) and Flush()
Merge pull request #5 from netmarkjp/split_flush_into_flush_and_log

split Flush(w) to Dump(w) and Flush()