[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eGoogleCloudConsoleFormatter\u003c/code\u003e class, a console formatter designed for use with Google Cloud Logging.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoogleCloudConsoleFormatter\u003c/code\u003e class is derived from \u003ccode\u003eConsoleFormatter\u003c/code\u003e and implements \u003ccode\u003eIDisposable\u003c/code\u003e, offering functionalities for formatting log entries for console output.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for \u003ccode\u003eGoogleCloudConsoleFormatter\u003c/code\u003e is 1.4.0, with other versions 1.3.1, 1.2.0, 1.1.0 and 1.0.0 also available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides a constructor that takes \u003ccode\u003eIOptionsMonitor<GoogleCloudConsoleFormatterOptions>\u003c/code\u003e to observe and react to changes in the options, with \u003ccode\u003eoptionsMonitor\u003c/code\u003e being a required parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class overrides the method \u003ccode\u003eWrite<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider scopeProvider, TextWriter textWriter)\u003c/code\u003e, and has a static property \u003ccode\u003eFormatterName\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Logging.Console - Class GoogleCloudConsoleFormatter (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Logging.Console/latest/Google.Cloud.Logging.Console.GoogleCloudConsoleFormatter)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Logging.Console/1.4.0/Google.Cloud.Logging.Console.GoogleCloudConsoleFormatter)\n- [1.3.1](/dotnet/docs/reference/Google.Cloud.Logging.Console/1.3.1/Google.Cloud.Logging.Console.GoogleCloudConsoleFormatter)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Logging.Console/1.2.0/Google.Cloud.Logging.Console.GoogleCloudConsoleFormatter)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Logging.Console/1.1.0/Google.Cloud.Logging.Console.GoogleCloudConsoleFormatter)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Logging.Console/1.0.0/Google.Cloud.Logging.Console.GoogleCloudConsoleFormatter) \n\n public sealed class GoogleCloudConsoleFormatter : ConsoleFormatter, IDisposable\n\nReference documentation and code samples for the Google.Cloud.Logging.Console class GoogleCloudConsoleFormatter.\n\nConsole formatter for use with Google Cloud Logging. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e [ConsoleFormatter](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.console.consoleformatter) \\\u003e GoogleCloudConsoleFormatter \n\nImplements\n----------\n\n[IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable) \n\nInherited Members\n-----------------\n\n[ConsoleFormatter.Name](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.console.consoleformatter.name) \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.Logging.Console](/dotnet/docs/reference/Google.Cloud.Logging.Console/latest/Google.Cloud.Logging.Console)\n\nAssembly\n--------\n\nGoogle.Cloud.Logging.Console.dll\n\nConstructors\n------------\n\n### GoogleCloudConsoleFormatter(IOptionsMonitor\\\u003cGoogleCloudConsoleFormatterOptions\\\u003e)\n\n public GoogleCloudConsoleFormatter(IOptionsMonitor\u003cGoogleCloudConsoleFormatterOptions\u003e optionsMonitor)\n\nConstructs a new formatter which uses the specified monitor to retrieve\noptions and watch for options changes.\n\nProperties\n----------\n\n### FormatterName\n\n public static string FormatterName { get; }\n\nThe name for the Google Cloud console formatter.\n\nMethods\n-------\n\n### Write\\\u003cTState\\\u003e(in LogEntry\\\u003cTState\\\u003e, IExternalScopeProvider, TextWriter)\n\n public override void Write\u003cTState\u003e(in LogEntry\u003cTState\u003e logEntry, IExternalScopeProvider scopeProvider, TextWriter textWriter)\n\n**Overrides** \n[ConsoleFormatter.Write\\\u003cTState\\\u003e(in LogEntry\\\u003cTState\\\u003e, IExternalScopeProvider, TextWriter)](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.console.consoleformatter.write)"]]