ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
TagProcessor.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the Monolog package.
5  *
6  * (c) Jordi Boggiano <j.boggiano@seld.be>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
12 namespace Monolog\Processor;
13 
20 {
21  private $tags;
22 
23  public function __construct(array $tags = array())
24  {
25  $this->setTags($tags);
26  }
27 
28  public function addTags(array $tags = array())
29  {
30  $this->tags = array_merge($this->tags, $tags);
31  }
32 
33  public function setTags(array $tags = array())
34  {
35  $this->tags = $tags;
36  }
37 
38  public function __invoke(array $record)
39  {
40  $record['extra']['tags'] = $this->tags;
41 
42  return $record;
43  }
44 }
Adds a tags array into record.
__construct(array $tags=array())
addTags(array $tags=array())
Create styles array
The data for the language used.
setTags(array $tags=array())