public function setDefaultHandler($name)
    {
        if (!array_key_exists($name, $this->logRegistry)) {
            throw new \Exception('LogHandler named ['.$name.'] does not exist');
        }
        $this->defaultLogHandler = $name;
    }
public function setDefaultHandler($name)
    {
        if (!array_key_exists($name, $this->logRegistry)) {
            throw new \Exception('LogHandler named ['.$name.'] does not exist');
        }
        $this->defaultLogHandler = $name;
    }
public function setDefaultHandler ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> logRegistry ) ) { throw new \ Exception ( 'LogHandler named [' . $ name . '] does not exist' ) ; } $ this -> defaultLogHandler = $ name ; }
Set the default log handler.

@param string $logHandler

@throws \Exception
Set the default log handler .