src/Adaptors/AbstractAdaptor.php
public function setLevel($min = null, $max = null)
    {
        // Null for default allows easier calling to set
        // a maximum level only
        if (!$min || !Logger::isLogLevel($min)) {
            $min = LogLevel::DEBUG;
        }

        if (!$max || !Logger::isLogLevel($max)) {
            $max = LogLevel::EMERGENCY;
        }

        $this->minimumLevel = Logger::$levels[$min];
        $this->maximumLevel = Logger::$levels[$max];
    }
public function setLevel($min = null, $max = null)
    {
        // Null for default allows easier calling to set
        // a maximum level only
        if (!$min || !Logger::isLogLevel($min)) {
            $min = LogLevel::DEBUG;
        }

        if (!$max || !Logger::isLogLevel($max)) {
            $max = LogLevel::EMERGENCY;
        }

        $this->minimumLevel = Logger::$levels[$min];
        $this->maximumLevel = Logger::$levels[$max];
    }
public function setLevel ( $ min = null , $ max = null ) { // Null for default allows easier calling to set // a maximum level only if ( ! $ min || ! Logger :: isLogLevel ( $ min ) ) { $ min = LogLevel :: DEBUG ; } if ( ! $ max || ! Logger :: isLogLevel ( $ max ) ) { $ max = LogLevel :: EMERGENCY ; } $ this -> minimumLevel = Logger :: $ levels [ $ min ] ; $ this -> maximumLevel = Logger :: $ levels [ $ max ] ; }
Sets the minimum log level handled by this adaptor

@param string $level Log level
Sets the minimum log level handled by this adaptor