src/Application.php
public function getLog(string $logger = 'default'): LoggerInterface
    {
        if (!isset($this->loggers[$logger])) {
            if ($logger === 'default') {
                if (!isset($this->implicit['logger'])) {
                    throw new \RuntimeException('The default logger was not set');
                }
                $this->loggers[$logger] = $this->implicit['logger'];
            } else {
                $this->loggers[$logger] = $this->getCollector()->getLogger($logger);
            }
        }

        return $this->loggers[$logger];
    }
public function getLog(string $logger = 'default'): LoggerInterface
    {
        if (!isset($this->loggers[$logger])) {
            if ($logger === 'default') {
                if (!isset($this->implicit['logger'])) {
                    throw new \RuntimeException('The default logger was not set');
                }
                $this->loggers[$logger] = $this->implicit['logger'];
            } else {
                $this->loggers[$logger] = $this->getCollector()->getLogger($logger);
            }
        }

        return $this->loggers[$logger];
    }
public function getLog ( string $ logger = 'default' ) : LoggerInterface { if ( ! isset ( $ this -> loggers [ $ logger ] ) ) { if ( $ logger === 'default' ) { if ( ! isset ( $ this -> implicit [ 'logger' ] ) ) { throw new \ RuntimeException ( 'The default logger was not set' ) ; } $ this -> loggers [ $ logger ] = $ this -> implicit [ 'logger' ] ; } else { $ this -> loggers [ $ logger ] = $ this -> getCollector ( ) -> getLogger ( $ logger ) ; } } return $ this -> loggers [ $ logger ] ; }
Returns a logger

@param   string $logger Logger's name

@return  LoggerInterface
Returns a logger