public function clearLog()
    {
        $this->listLog();
        foreach($this->dumparray as $df){
            /** @var $df DumpFile */
            $df->delete();
        }
        $this->setAccessMode(File::FILE_MODE_RW_TRUNCATE_FILE_TO_ZERO_LENGTH);
        $this->write("");
        $this->setAccessMode(File::FILE_MODE_RW_POINTER_AT_END);

    }