public function clearLog()
    {
        $qb = $this->createQueryBuilder();
        $query = $qb->getConnection()
            ->getDatabasePlatform()
            ->getTruncateTableSQL($this->getTableName());

        return $qb->getConnection()->executeQuery($query)->execute();
    }