src/Http/Application.php
public function getLogger()
    {
        if (is_null($this->logger)) {
            if ($this->getContainer()->has('logger')) {
                return $this->getContainer()->get('logger');
            } else if ($this->getContainer()->has('Psr\Log\LoggerInterface')) {
                return $this->getContainer()->get('Psr\Log\LoggerInterface');
            } else if (class_exists('Monolog\Logger')) {
                $this->getContainer()->addServiceProvider(new \Laasti\Log\MonologProvider);
                return $this->getContainer()->get('logger');

            }
        }

        return $this->logger;
    }
public function getLogger()
    {
        if (is_null($this->logger)) {
            if ($this->getContainer()->has('logger')) {
                return $this->getContainer()->get('logger');
            } else if ($this->getContainer()->has('Psr\Log\LoggerInterface')) {
                return $this->getContainer()->get('Psr\Log\LoggerInterface');
            } else if (class_exists('Monolog\Logger')) {
                $this->getContainer()->addServiceProvider(new \Laasti\Log\MonologProvider);
                return $this->getContainer()->get('logger');

            }
        }

        return $this->logger;
    }
public function getLogger ( ) { if ( is_null ( $ this -> logger ) ) { if ( $ this -> getContainer ( ) -> has ( 'logger' ) ) { return $ this -> getContainer ( ) -> get ( 'logger' ) ; } else if ( $ this -> getContainer ( ) -> has ( 'Psr\Log\LoggerInterface' ) ) { return $ this -> getContainer ( ) -> get ( 'Psr\Log\LoggerInterface' ) ; } else if ( class_exists ( 'Monolog\Logger' ) ) { $ this -> getContainer ( ) -> addServiceProvider ( new \ Laasti \ Log \ MonologProvider ) ; return $ this -> getContainer ( ) -> get ( 'logger' ) ; } } return $ this -> logger ; }
Returns application logger
@return LoggerInterface
Returns application logger