Bolt\Storage\Repository\BaseLogRepository::clearLog PHP Method

clearLog() public method

Clear the log table.
public clearLog ( ) : boolean
return boolean
    public function clearLog()
    {
        $qb = $this->createQueryBuilder();
        $query = $qb->getConnection()->getDatabasePlatform()->getTruncateTableSQL($this->getTableName());
        return $qb->getConnection()->executeQuery($query)->execute();
    }