log module added a new function forceFlush()