1 | <?php |
||
14 | abstract class HandlerAbstract extends StreamHandler |
||
15 | { |
||
16 | /** |
||
17 | * Writes the record down to the log of the implementing handler. |
||
18 | * |
||
19 | * @param array $record |
||
20 | */ |
||
21 | protected function write(array $record = []) |
||
22 | { |
||
23 | $record['context'] = $this->logContextFormat(); |
||
24 | |||
25 | parent::write($record); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return array |
||
30 | */ |
||
31 | abstract protected function logContextFormat(); |
||
32 | } |
||
33 |