Lines Matching refs:this
57 $this->token = $token;
71 if (!array_key_exists($endpoint, $this->curlHandlers)) {
72 $this->curlHandlers[$endpoint] = $this->loadCurlHandle($endpoint);
75 return $this->curlHandlers[$endpoint];
87 $url = sprintf("https://%s/%s/%s/", static::HOST, $endpoint, $this->token);
104 $this->tag = is_array($tag) ? $tag : [$tag];
106 return $this;
116 $this->tag = array_unique(array_merge($this->tag, $tag));
119 return $this;
124 $this->send($record["formatted"], static::ENDPOINT_SINGLE);
129 $level = $this->level;
136 $this->send($this->getFormatter()->formatBatch($records), static::ENDPOINT_BATCH);
142 $ch = $this->getCurlHandler($endpoint);
146 if (!empty($this->tag)) {
147 $headers[] = 'X-LOGGLY-TAG: '.implode(',', $this->tag);