src/Pinocchio/Worker.php
public function getLogger()
    {
        if ($this->logger === null) {
            if ($this->configuration->get('silent')) {
                $this->logger = new Logger\NullLogger();
            } else {
                $loggerClass = $this->configuration->get('logger') ?: '\\Pinocchio\\Logger\\StandardLogger';
                $loggerOpts  = $this->configuration->get('logger_opts') ?: array();

                $this->logger = new $loggerClass($loggerOpts);
            }
        }

        return $this->logger;
    }
public function getLogger()
    {
        if ($this->logger === null) {
            if ($this->configuration->get('silent')) {
                $this->logger = new Logger\NullLogger();
            } else {
                $loggerClass = $this->configuration->get('logger') ?: '\\Pinocchio\\Logger\\StandardLogger';
                $loggerOpts  = $this->configuration->get('logger_opts') ?: array();

                $this->logger = new $loggerClass($loggerOpts);
            }
        }

        return $this->logger;
    }
public function getLogger ( ) { if ( $ this -> logger === null ) { if ( $ this -> configuration -> get ( 'silent' ) ) { $ this -> logger = new Logger \ NullLogger ( ) ; } else { $ loggerClass = $ this -> configuration -> get ( 'logger' ) ? : '\\Pinocchio\\Logger\\StandardLogger' ; $ loggerOpts = $ this -> configuration -> get ( 'logger_opts' ) ? : array ( ) ; $ this -> logger = new $ loggerClass ( $ loggerOpts ) ; } } return $ this -> logger ; }
Get the Logger instance.

@return \Pinocchio\Logger\LoggerInterface
Get the Logger instance .