| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 22 | public function get(EtlExecution $execution): LoggerInterface |
||
| 23 | { |
||
| 24 | $logger = new Logger('etl'); |
||
| 25 | $logPath = $this->chainWorkDirManager->getLocalTmpWorkDir($execution); |
||
| 26 | $logger->pushHandler(new StreamHandler("$logPath/execution.log", Logger::INFO)); |
||
| 27 | |||
| 28 | if ($this->etlLogger instanceof Logger) { |
||
| 29 | foreach ($this->etlLogger->getHandlers() as $handler) { |
||
|
|
|||
| 30 | $logger->pushHandler($handler); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | return $logger; |
||
| 35 | } |
||
| 38 |