mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-09 14:46:46 +02:00
Add method for adding additional tags to Loggly handler
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user