protected function setupLogging()
    {
        $level = $this->options->getOpt('loglevel', $this->logdefault);
        if (!isset($this->loglevel[$level])) $this->fatal('Unknown log level');
        foreach (array_keys($this->loglevel) as $l) {
            if ($l == $level) break;
            unset($this->loglevel[$l]);
        }
    }
protected function setupLogging()
    {
        $level = $this->options->getOpt('loglevel', $this->logdefault);
        if (!isset($this->loglevel[$level])) $this->fatal('Unknown log level');
        foreach (array_keys($this->loglevel) as $l) {
            if ($l == $level) break;
            unset($this->loglevel[$l]);
        }
    }
protected function setupLogging ( ) { $ level = $ this -> options -> getOpt ( 'loglevel' , $ this -> logdefault ) ; if ( ! isset ( $ this -> loglevel [ $ level ] ) ) $ this -> fatal ( 'Unknown log level' ) ; foreach ( array_keys ( $ this -> loglevel ) as $ l ) { if ( $ l == $ level ) break ; unset ( $ this -> loglevel [ $ l ] ) ; } }
Handle the logging options
Handle the logging options