// This configuration is common with Private Google Access:
// https://cloud.google.com/vpc/docs/private-google-access
auto options = google::cloud::Options{}.set<google::cloud::EndpointOption>(
"private.googleapis.com");
auto client = google::cloud::logging_v2::LoggingServiceV2Client(
google::cloud::logging_v2::MakeLoggingServiceV2Connection(options));
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis page provides access to documentation for various versions of the \u003ccode\u003elogging_v2_1_1LoggingServiceV2Client\u003c/code\u003e, ranging from version 2.11.0 up to the latest release candidate, 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eEach listed version corresponds to a specific documentation page detailing the \u003ccode\u003eLoggingServiceV2Client\u003c/code\u003e endpoint snippet for that particular release, with every page containing the same configuration.\u003c/p\u003e\n"],["\u003cp\u003eThe content highlights the capability to override the default endpoint configuration of \u003ccode\u003elogging_v2::LoggingServiceV2Client\u003c/code\u003e using the \u003ccode\u003egoogle::cloud::EndpointOption\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe example code demonstrates how to set a custom endpoint, such as "private.googleapis.com," which is relevant for environments like Private Google Access.\u003c/p\u003e\n"]]],[],null,["Version 2.20.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/logging/latest/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.41.0](/cpp/docs/reference/logging/2.41.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.40.0](/cpp/docs/reference/logging/2.40.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.39.0](/cpp/docs/reference/logging/2.39.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.38.0](/cpp/docs/reference/logging/2.38.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.37.0](/cpp/docs/reference/logging/2.37.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.36.0](/cpp/docs/reference/logging/2.36.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.35.0](/cpp/docs/reference/logging/2.35.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.34.0](/cpp/docs/reference/logging/2.34.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.33.0](/cpp/docs/reference/logging/2.33.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.32.0](/cpp/docs/reference/logging/2.32.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.31.0](/cpp/docs/reference/logging/2.31.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.30.0](/cpp/docs/reference/logging/2.30.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.29.0](/cpp/docs/reference/logging/2.29.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.28.0](/cpp/docs/reference/logging/2.28.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.27.0](/cpp/docs/reference/logging/2.27.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.26.0](/cpp/docs/reference/logging/2.26.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.25.1](/cpp/docs/reference/logging/2.25.1/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.24.0](/cpp/docs/reference/logging/2.24.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.23.0](/cpp/docs/reference/logging/2.23.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.22.1](/cpp/docs/reference/logging/2.22.1/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.21.0](/cpp/docs/reference/logging/2.21.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.20.0](/cpp/docs/reference/logging/2.20.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.19.0](/cpp/docs/reference/logging/2.19.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.18.0](/cpp/docs/reference/logging/2.18.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.17.0](/cpp/docs/reference/logging/2.17.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.16.0](/cpp/docs/reference/logging/2.16.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.15.1](/cpp/docs/reference/logging/2.15.1/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.14.0](/cpp/docs/reference/logging/2.14.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.13.0](/cpp/docs/reference/logging/2.13.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.12.0](/cpp/docs/reference/logging/2.12.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet)\n- [2.11.0](/cpp/docs/reference/logging/2.11.0/logging_v2_1_1LoggingServiceV2Client-endpoint-snippet) \n\nOverride logging_v2::LoggingServiceV2Client Endpoint Configuration\n==================================================================\n\n // This configuration is common with Private Google Access:\n // https://cloud.google.com/vpc/docs/private-google-access\n auto options = google::cloud::Options{}.set\u003cgoogle::cloud::EndpointOption\u003e(\n \"private.googleapis.com\");\n auto client = google::cloud::logging_v2::LoggingServiceV2Client(\n google::cloud::logging_v2::MakeLoggingServiceV2Connection(options));"]]