| Total Complexity | 5 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class ExceptionLogger |
||
| 14 | { |
||
| 15 | protected LoggerInterface $fileLogger; |
||
| 16 | |||
| 17 | public function __construct() |
||
| 18 | { |
||
| 19 | $this->fileLogger = new \WebServCo\Framework\Log\FileLogger( |
||
| 20 | \WebServCo\Framework\Helpers\PhpHelper::isCli() ? 'errorCLI' : 'error', |
||
| 21 | \WebServCo\Framework\Environment\Config::string('APP_PATH_LOG'), |
||
| 22 | ); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function log(\Throwable $exception): void |
||
| 36 | } |
||
| 37 | } |
||
| 38 |