auto flush logs