[[["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\u003eConsoleLoggerExtensions\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Logging.Console\u003c/code\u003e namespace, covering various versions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConsoleLoggerExtensions\u003c/code\u003e offers extension methods to facilitate the configuration of \u003ccode\u003eGoogleCloudConsoleFormatter\u003c/code\u003e, which is utilized for logging.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddGoogleCloudConsole\u003c/code\u003e methods allow adding the \u003ccode\u003eGoogleCloudConsoleFormatter\u003c/code\u003e to an \u003ccode\u003eILoggingBuilder\u003c/code\u003e, with or without the ability to configure options using \u003ccode\u003eGoogleCloudConsoleFormatterOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eConsoleLoggerExtensions\u003c/code\u003e is version 1.4.0, however version 1.3.1, 1.2.0, 1.1.0 and 1.0.0 are also available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddGoogleCloudConsole\u003c/code\u003e methods both return the original logging builder, allowing for method chaining for further configuration.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Logging.Console - Class ConsoleLoggerExtensions (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.ConsoleLoggerExtensions)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Logging.Console/1.4.0/Google.Cloud.Logging.Console.ConsoleLoggerExtensions)\n- [1.3.1](/dotnet/docs/reference/Google.Cloud.Logging.Console/1.3.1/Google.Cloud.Logging.Console.ConsoleLoggerExtensions)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Logging.Console/1.2.0/Google.Cloud.Logging.Console.ConsoleLoggerExtensions)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Logging.Console/1.1.0/Google.Cloud.Logging.Console.ConsoleLoggerExtensions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Logging.Console/1.0.0/Google.Cloud.Logging.Console.ConsoleLoggerExtensions) \n\n public static class ConsoleLoggerExtensions\n\nReference documentation and code samples for the Google.Cloud.Logging.Console class ConsoleLoggerExtensions.\n\nExtension methods to make it easier to configure [GoogleCloudConsoleFormatter](/dotnet/docs/reference/Google.Cloud.Logging.Console/latest/Google.Cloud.Logging.Console.GoogleCloudConsoleFormatter). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ConsoleLoggerExtensions \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.Logging.Console](/dotnet/docs/reference/Google.Cloud.Logging.Console/latest/Google.Cloud.Logging.Console)\n\nAssembly\n--------\n\nGoogle.Cloud.Logging.Console.dll\n\nMethods\n-------\n\n### AddGoogleCloudConsole(ILoggingBuilder)\n\n public static ILoggingBuilder AddGoogleCloudConsole(this ILoggingBuilder builder)\n\nAdds [GoogleCloudConsoleFormatter](/dotnet/docs/reference/Google.Cloud.Logging.Console/latest/Google.Cloud.Logging.Console.GoogleCloudConsoleFormatter) to the given logging builder.\n\n### AddGoogleCloudConsole(ILoggingBuilder, Action\\\u003cGoogleCloudConsoleFormatterOptions\\\u003e)\n\n public static ILoggingBuilder AddGoogleCloudConsole(this ILoggingBuilder builder, Action\u003cGoogleCloudConsoleFormatterOptions\u003e configure)\n\nAdds [GoogleCloudConsoleFormatter](/dotnet/docs/reference/Google.Cloud.Logging.Console/latest/Google.Cloud.Logging.Console.GoogleCloudConsoleFormatter) to the given logging builder, with an\naction to configure options."]]