Add a variable to auto-flush logs every n minutes