public function getLogger($name = null)
    {
        if (null === $name && !isset($this->loggers['nullLogger'])) {
            $this->createNullLogger();
            $name = 'nullLogger';
        }

        return $this->loggers[$name];
    }
public function getLogger($name = null)
    {
        if (null === $name && !isset($this->loggers['nullLogger'])) {
            $this->createNullLogger();
            $name = 'nullLogger';
        }

        return $this->loggers[$name];
    }
public function getLogger ( $ name = null ) { if ( null === $ name && ! isset ( $ this -> loggers [ 'nullLogger' ] ) ) { $ this -> createNullLogger ( ) ; $ name = 'nullLogger' ; } return $ this -> loggers [ $ name ] ; }
Returns a registered Logger.

@param string|null $name The name of the Logger

@return LoggerInterface The logger bounded to the specified name
Returns a registered Logger .