Lines Matching refs:logger
5 [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md).
7 Note that this is not a logger of its own. It is merely an interface that
8 describes a logger. See the specification for more details.
20 If you need a logger, you can use the interface like this:
29 private $logger;
31 public function __construct(LoggerInterface $logger = null)
33 $this->logger = $logger;
38 if ($this->logger) {
39 $this->logger->info('Doing work');
45 $this->logger->error('Oh no!', array('exception' => $exception));
53 You can then pick one of the implementations of the interface to get a logger.
57 [specification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)