Add 'flushLog()'