[[["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-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eApplicationContext\u003c/code\u003e class defines the operational context of the library, allowing for custom logger setups.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eApplicationContext\u003c/code\u003e is 1.69.0, with previous versions including 1.68.0, 1.60.0, 1.59.0, 1.55.0, and 1.50.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLogger\u003c/code\u003e property returns the currently active logger within the application context, defaulting to a \u003ccode\u003eNullLogger\u003c/code\u003e if none has been explicitly set.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRegisterLogger\u003c/code\u003e method allows a custom \u003ccode\u003eILogger\u003c/code\u003e to be registered for use within the application, but throws an \u003ccode\u003eInvalidOperationException\u003c/code\u003e if a logger is already registered.\u003c/p\u003e\n"],["\u003cp\u003eThe ApplicationContext class inherits from object and contains the inherited members: Equals, GetHashCode, GetType, MemberwiseClone, ReferenceEquals and ToString.\u003c/p\u003e\n"]]],[],null,["# Class ApplicationContext (1.69.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.69.0 (latest)](/dotnet/docs/reference/Google.Apis/latest/Google.ApplicationContext)\n- [1.68.0](/dotnet/docs/reference/Google.Apis/1.68.0/Google.ApplicationContext)\n- [1.60.0](/dotnet/docs/reference/Google.Apis/1.60.0/Google.ApplicationContext)\n- [1.59.0](/dotnet/docs/reference/Google.Apis/1.59.0/Google.ApplicationContext)\n- [1.55.0](/dotnet/docs/reference/Google.Apis/1.55.0/Google.ApplicationContext)\n- [1.50.0](/dotnet/docs/reference/Google.Apis/1.50.0/Google.ApplicationContext) \n\n public static class ApplicationContext\n\nDefines the context in which this library runs. It allows setting up custom loggers. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ApplicationContext \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \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.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google](/dotnet/docs/reference/Google.Apis/latest/Google)\n\nAssembly\n--------\n\nGoogle.Apis.Core.dll\n\nProperties\n----------\n\n### Logger\n\n public static ILogger Logger { get; }\n\nReturns the logger used within this application context.\n\n**Remarks** \nIt creates a [NullLogger](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Logging.NullLogger) if no logger was registered previously\n\nMethods\n-------\n\n### RegisterLogger(ILogger)\n\n public static void RegisterLogger(ILogger loggerToRegister)\n\nRegisters a logger with this application context."]]