private function setLogger() {

        $config = $this->getConfig();

        if($config->offsetExists('errors') === true && $config->errors === true) {
            $this->logger = new FileAdapter($this->getConfig()->errorLog);
        }

        return $this;
    }
private function setLogger() {

        $config = $this->getConfig();

        if($config->offsetExists('errors') === true && $config->errors === true) {
            $this->logger = new FileAdapter($this->getConfig()->errorLog);
        }

        return $this;
    }
private function setLogger ( ) { $ config = $ this -> getConfig ( ) ; if ( $ config -> offsetExists ( 'errors' ) === true && $ config -> errors === true ) { $ this -> logger = new FileAdapter ( $ this -> getConfig ( ) -> errorLog ) ; } return $ this ; }
Setup file logger

@return SonarTask
Setup file logger