[[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLogConsumer\u003c/code\u003e class in the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common\u003c/code\u003e namespace provides functions for creating \u003ccode\u003eIConsumer<T>\u003c/code\u003e instances.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eLogConsumer\u003c/code\u003e is 5.2.0, with previous versions including 5.1.0, 5.0.0, 4.4.0, and 4.3.1 also being available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLogConsumer\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and includes inherited members such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreate\u003c/code\u003e method allows users to create an \u003ccode\u003eIConsumer<LogEntry>\u003c/code\u003e by providing a \u003ccode\u003eLoggingServiceV2Client\u003c/code\u003e, \u003ccode\u003eBufferOptions\u003c/code\u003e, and \u003ccode\u003eRetryOptions\u003c/code\u003e, all of which cannot be null.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreate\u003c/code\u003e method returns an \u003ccode\u003eIConsumer<LogEntry>\u003c/code\u003e, allowing users to create one based on specific client and options.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Diagnostics.Common - Class LogConsumer (5.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.LogConsumer)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.2.0/Google.Cloud.Diagnostics.Common.LogConsumer)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.1.0/Google.Cloud.Diagnostics.Common.LogConsumer)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.0.0/Google.Cloud.Diagnostics.Common.LogConsumer)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.4.0/Google.Cloud.Diagnostics.Common.LogConsumer)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.3.1/Google.Cloud.Diagnostics.Common.LogConsumer) \n\n public static class LogConsumer\n\nReference documentation and code samples for the Google.Cloud.Diagnostics.Common class LogConsumer.\n\nFunctions to create [IConsumer\\\u003cT\\\u003e](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.IConsumer-1)s. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LogConsumer \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Diagnostics.Common](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common)\n\nAssembly\n--------\n\nGoogle.Cloud.Diagnostics.Common.dll\n\nMethods\n-------\n\n### Create(LoggingServiceV2Client, BufferOptions, RetryOptions)\n\n public static IConsumer\u003cLogEntry\u003e Create(LoggingServiceV2Client client, BufferOptions bufferOptions, RetryOptions retryOptions)\n\nCreates an [IConsumer\\\u003cT\\\u003e](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.IConsumer-1) based on the client and options."]]