1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Merge pull request #380 from arnaslu/master

Add support for multiple tags in Loggly handler
This commit is contained in:
Jordi Boggiano
2014-06-29 12:53:44 +02:00

View File

@@ -46,6 +46,11 @@ class LogglyHandler extends AbstractProcessingHandler
$this->tag = $tag;
}
public function addTag($tag)
{
$this->tag = (strlen($this->tag) > 0) ? $this->tag .','. $tag : $tag;
}
protected function write(array $record)
{
$this->send($record["formatted"], self::ENDPOINT_SINGLE);