src/sb/Controller/Command/Line.php
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);
    }
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);
    }
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 ) ; }
Set the logger that logs the full log message stream
when the destructor runs
@param \sb\Logger\Base $logger
Set the logger that logs the full log message stream when the destructor runs