/**
* 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;
}