1 | <?php |
||
26 | trait LogEntryPrototypeTrait |
||
27 | { |
||
28 | /** |
||
29 | * log entry prototype |
||
30 | * |
||
31 | * @var LogEntryInterface |
||
32 | * @access protected |
||
33 | */ |
||
34 | protected $entry_proto; |
||
35 | |||
36 | /** |
||
37 | * {@inheritDoc} |
||
38 | */ |
||
39 | public function setLogEntryPrototype(LogEntryInterface $logEntry = null) |
||
44 | |||
45 | /** |
||
46 | * Create a log entry |
||
47 | * |
||
48 | * @param string $channel |
||
49 | * @param string $level |
||
50 | * @param string $message |
||
51 | * $param array $context |
||
52 | * @return LogEntryInterface |
||
53 | * @access protected |
||
54 | */ |
||
55 | protected function newLogEntry( |
||
73 | } |
||
74 |