1 | <?php |
||
13 | trait LoggingEntity |
||
14 | { |
||
15 | private $logger; |
||
16 | |||
17 | protected function setLogger(LoggerInterface $logger = null) |
||
22 | |||
23 | protected function emergency($message, array $context = array()) |
||
27 | |||
28 | protected function alert($message, array $context = array()) |
||
32 | |||
33 | protected function critical($message, array $context = array()) |
||
37 | |||
38 | protected function error($message, array $context = array()) |
||
42 | |||
43 | protected function warning($message, array $context = array()) |
||
47 | |||
48 | protected function notice($message, array $context = array()) |
||
52 | |||
53 | protected function info($message, array $context = array()) |
||
57 | |||
58 | protected function debug($message, array $context = array()) |
||
62 | |||
63 | protected function log($level, $message, array $context = array()) |
||
67 | } |
||
68 |