protected function logToFile($message){
        if(isset($this->logger) && $this->logger instanceof \sb\Logger\Base){
            return $this->logger->{$this->log_name}($message);
        }
    }
protected function logToFile($message){
        if(isset($this->logger) && $this->logger instanceof \sb\Logger\Base){
            return $this->logger->{$this->log_name}($message);
        }
    }
protected function logToFile ( $ message ) { if ( isset ( $ this -> logger ) && $ this -> logger instanceof \ sb \ Logger \ Base ) { return $ this -> logger -> { $ this -> log_name } ( $ message ) ; } }
Logs to file
@param string $message
@return string
Logs to file