original_string: public function writeToLog($message)
      {
  
          if (is_null($this->logger)) {
              $this->setLogger();
          }
  
          if (empty($this->sbf_id) || $this->sbf_id == \sb\Gateway::$cookie['SBF_ID']) {
  
              $message = preg_replace("~\t~", " ", $message);
              return $this->logger->{$this->log_str}($message);
          }
      }
code: public function writeToLog($message)
      {
  
          if (is_null($this->logger)) {
              $this->setLogger();
          }
  
          if (empty($this->sbf_id) || $this->sbf_id == \sb\Gateway::$cookie['SBF_ID']) {
  
              $message = preg_replace("~\t~", " ", $message);
              return $this->logger->{$this->log_str}($message);
          }
      }
code_tokens: public function writeToLog ( $ message ) { if ( is_null ( $ this -> logger ) ) { $ this -> setLogger ( ) ; } if ( empty ( $ this -> sbf_id ) || $ this -> sbf_id == \ sb \ Gateway :: $ cookie [ 'SBF_ID' ] ) { $ message = preg_replace ( "~\t~" , " " , $ message ) ; return $ this -> logger -> { $ this -> log_str } ( $ message ) ; } }
docstring: Logs all sql statements to a file, if the log file is specified
  
  @param string $message The string to log
docstring_tokens: Logs all sql statements to a file if the log file is specified