1 | <?php |
||
13 | class LogAppender extends \LoggerAppender |
||
14 | { |
||
15 | /** |
||
16 | * ZF logger. |
||
17 | * |
||
18 | * @var Logger |
||
19 | */ |
||
20 | protected $zendLog; |
||
21 | |||
22 | /** |
||
23 | * Tell that the log appender doesn't require a layout. |
||
24 | * |
||
25 | * @var bool |
||
26 | */ |
||
27 | protected $requiresLayout = false; |
||
28 | |||
29 | /** |
||
30 | * Return the ZF logger. |
||
31 | * |
||
32 | * @return Logger |
||
33 | */ |
||
34 | 6 | public function getZendLog() |
|
38 | |||
39 | /** |
||
40 | * Set the ZF logger. |
||
41 | * |
||
42 | * @param Logger $zendLog Logger |
||
43 | * |
||
44 | * @return $this |
||
45 | */ |
||
46 | 6 | public function setZendLog(Logger $zendLog) |
|
52 | |||
53 | /** |
||
54 | * Forwards the logging event to the destination. |
||
55 | * |
||
56 | * Derived appenders should implement this method to perform actual logging. |
||
57 | * |
||
58 | * @param LoggerLoggingEvent $event Logger event |
||
59 | * |
||
60 | * @throws \Zend\Log\Exception\InvalidArgumentException |
||
61 | * @throws \Zend\Log\Exception\RuntimeException |
||
62 | */ |
||
63 | 6 | public function append(LoggerLoggingEvent $event) |
|
88 | } |
||
89 |