Addition of flush log and flush logs command