public function getLogger()
    {
        $logger = null;

        if ($this->container && $this->container->has('logger')) {
            $logger = $this->container->get('logger');
        }

        return($logger);
    }
public function getLogger()
    {
        $logger = null;

        if ($this->container && $this->container->has('logger')) {
            $logger = $this->container->get('logger');
        }

        return($logger);
    }
public function getLogger ( ) { $ logger = null ; if ( $ this -> container && $ this -> container -> has ( 'logger' ) ) { $ logger = $ this -> container -> get ( 'logger' ) ; } return ( $ logger ) ; }
getLogger
Get the logger from the container if available,
and provide it to the LogAwareTrait log method.

@return Monolog\Logger|null $logger
getLogger Get the logger from the container if available and provide it to the LogAwareTrait log method .