src/GuillermoMartinez/Filemanager/Filemanager.php
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);
    }
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);
    }
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 ) ; }
Si debug active permite logear informacion
@param string $string Texto a mostrar
@param string $type Tipo de mensaje
@return void
Si debug active permite logear informacion