| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function __invoke(\Interop\Container\ContainerInterface $container, $requestedName, array $options = null) |
||
| 18 | { |
||
| 19 | $config = $container->get('config'); |
||
| 20 | $losConfig = $config['loslog'] ?? []; |
||
| 21 | |||
| 22 | $logDir = $losConfig['log_dir'] ?? 'data/logs'; |
||
| 23 | $logFile = $losConfig['error_logger_file'] ?? 'error.log'; |
||
| 24 | |||
| 25 | $logger = AbstractLogger::generateFileLogger($logFile, $logDir); |
||
| 26 | |||
| 27 | return new LosLog($logger); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |