modified interface for sweeping
added parameter-less flush() interface in LogFileWriter