public function getSimilarLogsQueryBuilder(Log $log)
    {
        return $this->createQueryBuilder()
                    ->select('l.id, l.channel, l.level, l.level_name, l.message, l.datetime')
                    ->from($this->tableName, 'l')
                    ->andWhere('l.message = :message')
                    ->andWhere('l.channel = :channel')
                    ->andWhere('l.level = :level')
                    ->andWhere('l.id != :id')
                    ->setParameter(':message', $log->getMessage())
                    ->setParameter(':channel', $log->getChannel())
                    ->setParameter(':level', $log->getLevel())
                    ->setParameter(':id', $log->getId());
    }