public function setLogLevel($logLevel)
    {
        if (!is_string($logLevel) || '' === ($level = strtolower($logLevel)) || !isset($this->levelMap[$level]))
        {
            throw new \InvalidArgumentException(sprintf(
                '%s - Log level must be one of the following values: ["%s"].  %s seen.',
                get_called_class(),
                implode('", "', array_keys($this->levelMap)),
                is_string($logLevel) ? $logLevel : gettype($logLevel)
            ));
        }

        $this->level = $level;
    }
public function setLogLevel($logLevel)
    {
        if (!is_string($logLevel) || '' === ($level = strtolower($logLevel)) || !isset($this->levelMap[$level]))
        {
            throw new \InvalidArgumentException(sprintf(
                '%s - Log level must be one of the following values: ["%s"].  %s seen.',
                get_called_class(),
                implode('", "', array_keys($this->levelMap)),
                is_string($logLevel) ? $logLevel : gettype($logLevel)
            ));
        }

        $this->level = $level;
    }
public function setLogLevel ( $ logLevel ) { if ( ! is_string ( $ logLevel ) || '' === ( $ level = strtolower ( $ logLevel ) ) || ! isset ( $ this -> levelMap [ $ level ] ) ) { throw new \ InvalidArgumentException ( sprintf ( '%s - Log level must be one of the following values: ["%s"].  %s seen.' , get_called_class ( ) , implode ( '", "' , array_keys ( $ this -> levelMap ) ) , is_string ( $ logLevel ) ? $ logLevel : gettype ( $ logLevel ) ) ) ; } $ this -> level = $ level ; }
setLogLevel will limit what is written to a level greater than or equal to value passed in.

@param string $logLevel
setLogLevel will limit what is written to a level greater than or equal to value passed in .