final public function filterByLevel($level, array $levels = [])
    {
        if ($level !== $this->minLevel) {
            $this->minLevel = $level;
            $this->consumer = null;
        }
    
        if (!empty($levels)) {
            $this->levels = $levels;
            $this->consumer = null;
        }
        
        return $this;
    }
final public function filterByLevel($level, array $levels = [])
    {
        if ($level !== $this->minLevel) {
            $this->minLevel = $level;
            $this->consumer = null;
        }
    
        if (!empty($levels)) {
            $this->levels = $levels;
            $this->consumer = null;
        }
        
        return $this;
    }
final public function filterByLevel ( $ level , array $ levels = [ ] ) { if ( $ level !== $ this -> minLevel ) { $ this -> minLevel = $ level ; $ this -> consumer = null ; } if ( ! empty ( $ levels ) ) { $ this -> levels = $ levels ; $ this -> consumer = null ; } return $ this ; }
One can set minimum level of logs that will be streamed to OutputWriter by this LogsMonitor.
This is optional and if method is not call, all available logs are supposed to be streamed.

If second param is not empty then use this set of levels instead of defaults.
The list of Levels must be ordered from the most to the least significant.

@param string $level
@param array $levels
@return $this fluent interface
One can set minimum level of logs that will be streamed to OutputWriter by this LogsMonitor . This is optional and if method is not call all available logs are supposed to be streamed .