[[["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\u003eGoogleLoggerProvider\u003c/code\u003e class is an implementation of \u003ccode\u003eILoggerProvider\u003c/code\u003e for Google Cloud Logging within the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe class is part of the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common\u003c/code\u003e namespace and is available in the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eIt supports creating loggers via the \u003ccode\u003eCreateLogger(string logName)\u003c/code\u003e method, which returns an \u003ccode\u003eILogger\u003c/code\u003e instance using the specified name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreate(IServiceProvider serviceProvider, LoggingServiceOptions options = null)\u003c/code\u003e method allows for the creation of a new \u003ccode\u003eGoogleLoggerProvider\u003c/code\u003e with optional logging service configurations.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of this class that have been released, ranging from version 4.3.1 to the latest 5.2.0.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Diagnostics.Common - Class GoogleLoggerProvider (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.GoogleLoggerProvider)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.2.0/Google.Cloud.Diagnostics.Common.GoogleLoggerProvider)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.1.0/Google.Cloud.Diagnostics.Common.GoogleLoggerProvider)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.0.0/Google.Cloud.Diagnostics.Common.GoogleLoggerProvider)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.4.0/Google.Cloud.Diagnostics.Common.GoogleLoggerProvider)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.3.1/Google.Cloud.Diagnostics.Common.GoogleLoggerProvider) \n\n [ProviderAlias(\"Google\")]\n public sealed class GoogleLoggerProvider : ILoggerProvider, IDisposable\n\nReference documentation and code samples for the Google.Cloud.Diagnostics.Common class GoogleLoggerProvider.\n\n[ILoggerProvider](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.iloggerprovider) for Google Cloud Logging. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GoogleLoggerProvider \n\nImplements\n----------\n\n[ILoggerProvider](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.iloggerprovider), [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable) \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.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(IServiceProvider, LoggingServiceOptions)\n\n public static GoogleLoggerProvider Create(IServiceProvider serviceProvider, LoggingServiceOptions options = null)\n\nCreate an [ILoggerProvider](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.iloggerprovider) for Google Cloud Logging.\n\n### CreateLogger(string)\n\n public ILogger CreateLogger(string logName)\n\nCreates a [GoogleLogger](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.GoogleLogger) with the given log name.\n\n### Dispose()\n\n public void Dispose()"]]