public function _log($string,$type='info') {
        if($this->config['debug']){
            $string = $this->getLogTime().": ".$string;
        }
        if($type=='info')
            $this->log->addInfo($string);
        elseif($type=='warning')
            $this->log->addWarning($string);
        elseif($type=='error')
            $this->log->addError($string);
    }