diff --git a/src/Monolog/Handler/LogglyHandler.php b/src/Monolog/Handler/LogglyHandler.php index 9a3de6e6..49247371 100644 --- a/src/Monolog/Handler/LogglyHandler.php +++ b/src/Monolog/Handler/LogglyHandler.php @@ -46,6 +46,13 @@ class LogglyHandler extends AbstractProcessingHandler $this->tag = $tag; } + public function addTag($tag) + { + $tags = (strlen($this->tag) > 0) ? explode(',', $this->tag) : array(); + $tags[] = $tag; + $this->tag = implode(',', $tags); + } + protected function write(array $record) { $this->send($record["formatted"], self::ENDPOINT_SINGLE);