src/Log/Logger.php
public function setEnabledLevels(array $levels)
    {
        $enabledLevels = array();

        foreach ($levels as $value) {
            if ($this->validLevel($value)) {
                array_push($enabledLevels, $value);
            }
        }

        $this->_enabledLevels = $enabledLevels;
    }
public function setEnabledLevels(array $levels)
    {
        $enabledLevels = array();

        foreach ($levels as $value) {
            if ($this->validLevel($value)) {
                array_push($enabledLevels, $value);
            }
        }

        $this->_enabledLevels = $enabledLevels;
    }
public function setEnabledLevels ( array $ levels ) { $ enabledLevels = array ( ) ; foreach ( $ levels as $ value ) { if ( $ this -> validLevel ( $ value ) ) { array_push ( $ enabledLevels , $ value ) ; } } $ this -> _enabledLevels = $ enabledLevels ; }
Sets enabled logging levels.

@param array $levels
Sets enabled logging levels .