mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 21:56:31 +02:00
Merge pull request #380 from arnaslu/master
Add support for multiple tags in Loggly handler
This commit is contained in:
@@ -46,6 +46,11 @@ class LogglyHandler extends AbstractProcessingHandler
|
|||||||
$this->tag = $tag;
|
$this->tag = $tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function addTag($tag)
|
||||||
|
{
|
||||||
|
$this->tag = (strlen($this->tag) > 0) ? $this->tag .','. $tag : $tag;
|
||||||
|
}
|
||||||
|
|
||||||
protected function write(array $record)
|
protected function write(array $record)
|
||||||
{
|
{
|
||||||
$this->send($record["formatted"], self::ENDPOINT_SINGLE);
|
$this->send($record["formatted"], self::ENDPOINT_SINGLE);
|
||||||
|
Reference in New Issue
Block a user