芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/cms.mgaplay.com.br/lib/Listener/ListenerLoggerTrait.php
. */ namespace Xibo\Listener; use Psr\Log\NullLogger; trait ListenerLoggerTrait { /** @var \Psr\Log\LoggerInterface */ private $logger; /** * @param \Psr\Log\LoggerInterface $logger * @return $this */ public function useLogger($logger) { $this->logger = $logger; return $this; } /** * @return \Psr\Log\LoggerInterface */ protected function getLogger() { if ($this->logger === null) { $this->logger = new NullLogger(); } return $this->logger; } }