src/sb/PDO/Logger.php
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);
        }
    }
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);
        }
    }
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 ) ; } }
Logs all sql statements to a file, if the log file is specified

@param string $message The string to log
Logs all sql statements to a file if the log file is specified