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);
        }
    }