| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | trait WriteLogs |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @inheritdoc |
||
| 17 | */ |
||
| 18 | public function log($level, $message, array $context = []) |
||
| 19 | { |
||
| 20 | $this->writeLog($level, $message, $context); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Write a message to Monolog. |
||
| 25 | * |
||
| 26 | * @param string $level |
||
| 27 | * @param string $message |
||
| 28 | * @param array $context |
||
| 29 | * |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | protected function writeLog($level, $message, $context) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string|null $driver |
||
| 39 | * @return Logger|LoggerInterface |
||
| 40 | */ |
||
| 41 | abstract public function driver($driver = null); |
||
| 42 | } |
||
| 43 |