4 * This file is part of the Monolog package.
6 * (c) Jordi Boggiano <j.boggiano@seld.be>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Monolog\Processor;
15 * Adds a tags array into record
17 * @author Martijn Riemers
23 public function __construct(array $tags = array())
25 $this->setTags($tags);
28 public function addTags(array $tags = array())
30 $this->tags = array_merge($this->tags, $tags);
33 public function setTags(array $tags = array())
38 public function __invoke(array $record)
40 $record['extra']['tags'] = $this->tags;