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.
13 If you need a logger, you can use the interface like this:
22 private $logger;
24 public function __construct(LoggerInterface $logger = null)
26 $this->logger = $logger;
31 if ($this->logger) {
32 $this->logger->info('Doing work');
40 You can then pick one of the implementations of the interface to get a logger.
44 [specification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-int…