Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
48 | protected function write(array $record) |
||
49 | { |
||
50 | if ($this->serviceContainer->getParameter('graylog.enabled')) { |
||
51 | |||
52 | $facility = 'gelf-php'; |
||
53 | $record['channel'] = $facility; |
||
54 | |||
55 | /** @var Message $gelfMessage */ |
||
56 | $gelfMessage = $record['formatted']; |
||
57 | $gelfMessage->setFacility($facility); |
||
58 | $record['formatted'] = $gelfMessage; |
||
59 | |||
60 | $this->publisher->publish($record['formatted']); |
||
61 | } |
||
62 | } |
||
63 | } |
||
64 |