Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
42 | 12 | public function prepareExceptionLogger(ExceptionLogger $logger) |
|
43 | { |
||
44 | 12 | $formatter = new LineFormatter; |
|
45 | 12 | $formatter->includeStacktraces(); |
|
46 | |||
47 | 12 | $handler = new SyslogHandler($this->env->getValue('log.exception.syslog', 'spark')); |
|
48 | 12 | $handler->setFormatter($formatter); |
|
49 | |||
50 | 12 | $logger->pushHandler($handler); |
|
51 | 12 | } |
|
52 | } |
||
53 |