original_string: public function setLogger(\sb\Logger\Base $logger, $logname=''){
          $this->logger = $logger;
          $this->log_name = $logname ? $logname : get_called_class();
          $this->log_name = preg_replace("~[^\w+]~", "_", $this->log_name);
      }
code: public function setLogger(\sb\Logger\Base $logger, $logname=''){
          $this->logger = $logger;
          $this->log_name = $logname ? $logname : get_called_class();
          $this->log_name = preg_replace("~[^\w+]~", "_", $this->log_name);
      }
code_tokens: public function setLogger ( \ sb \ Logger \ Base $ logger , $ logname = '' ) { $ this -> logger = $ logger ; $ this -> log_name = $ logname ? $ logname : get_called_class ( ) ; $ this -> log_name = preg_replace ( "~[^\w+]~" , "_" , $ this -> log_name ) ; }
docstring: Set the logger that logs the full log message stream
  when the destructor runs
  @param \sb\Logger\Base $logger
docstring_tokens: Set the logger that logs the full log message stream when the destructor runs