log module improvements in timed-auto-flush