This interface defines virtual methods for each of the user-facing overload sets in LoggingServiceV2Client. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type LoggingServiceV2Client.
[[["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 webpage provides documentation for the \u003ccode\u003eLoggingServiceV2Connection\u003c/code\u003e class, which serves as an interface for interacting with the \u003ccode\u003eLoggingServiceV2Client\u003c/code\u003e within the Google Cloud Logging v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists various versions of the \u003ccode\u003eLoggingServiceV2Connection\u003c/code\u003e class, with version 2.37.0-rc being the latest, and version 2.20.0 being the initial version discussed in detail.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLoggingServiceV2Connection\u003c/code\u003e defines virtual methods for user-facing operations, including \u003ccode\u003eDeleteLog\u003c/code\u003e, \u003ccode\u003eWriteLogEntries\u003c/code\u003e, \u003ccode\u003eListLogEntries\u003c/code\u003e, \u003ccode\u003eListMonitoredResourceDescriptors\u003c/code\u003e, \u003ccode\u003eListLogs\u003c/code\u003e, \u003ccode\u003eAsyncTailLogEntries\u003c/code\u003e, and \u003ccode\u003eAsyncWriteLogEntries\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeLoggingServiceV2Connection()\u003c/code\u003e function can be used to create a concrete instance of the \u003ccode\u003eLoggingServiceV2Connection\u003c/code\u003e, while the \u003ccode\u003eMockLoggingServiceV2Connection\u003c/code\u003e can be used for testing.\u003c/p\u003e\n"],["\u003cp\u003eEach function listed is shown with it's parameters and what it returns, including data types and brief descriptions.\u003c/p\u003e\n"]]],[],null,[]]