def METHOD_NAME(caplog, instance, server_version, build_version, logline):
    caplog.clear()
    caplog.set_level(logging.DEBUG)
    check = TrafficServerCheck('traffic_server', {}, [instance])
    check._submit_version_metadata(server_version, build_version)
    if logline is None:
        assert "checks.base.traffic_server" not in caplog.text
    else:
        assert logline in caplog.text