| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | protected function getLogger(string $channel = null): LoggerInterface |
||
| 44 | { |
||
| 45 | if ($channel !== null) { |
||
| 46 | return $this->allocateLogger($channel); |
||
| 47 | } |
||
| 48 | |||
| 49 | if ($this->logger !== null) { |
||
| 50 | return $this->logger; |
||
| 51 | } |
||
| 52 | |||
| 53 | //We are using class name as log channel (name) by default |
||
| 54 | return $this->logger = $this->allocateLogger(static::class); |
||
| 55 | } |
||
| 74 |