log module auto flush optimized