@classmethod
def uri_matches(cls, uri):
    """
        override 'uri_matches' to prefer this logger when the server
        version doesn't support $text (MongoDB 2.4 only).
        """
    return super().uri_matches(uri) and cls._is_mongodb_24(uri)
