AppserverIo\Appserver\Core\Api\Node\LoggerNodeInterface::getName PHP Метод

getName() публичный Метод

Returns loggers name
public getName ( ) : string
Результат string The loggers name
    public function getName();

Usage Example

Пример #1
0
 /**
  * Injects the logger instance and the configuration.
  *
  * @param \Psr\Log\LoggerInterface                                 $logger        A provisioner instance
  * @param \AppserverIo\Appserver\Core\Api\Node\LoggerNodeInterface $configuration The provisioner configuration
  *
  * @return void
  */
 public function addLogger(LoggerInterface $logger, LoggerNodeInterface $configuration)
 {
     // bind the logger callback to the naming directory => the application itself
     $this->getNamingDirectory()->bind(sprintf('php:global/log/%s/%s', $this->getUniqueName(), $configuration->getName()), array(&$this, 'getLogger'), array($configuration->getName()));
     // add the logger instance to the application
     $this->loggers[$configuration->getName()] = $logger;
 }