code: func ValidateLevelFilter(min logutils.LogLevel, filter *logutils.LevelFilter) bool {
  	for _, level := range filter.Levels {
  		if level == min {
  			return true
  		}
  	}
  	return false
  }
docs: // ValidateLevelFilter verifies that the log levels within the filter are valid.