Typically includes conditions that don't cause the app to fail. Warning - Logs abnormal or unexpected events.Use with extreme caution in production due to high volume of log events. Verbose - Recommended only for debugging and development, Verbose logs the most detailed messages.Use with caution in production due to high volume of log events. Info - Recommended for debugging and development, Info logs the key events of an authentication flow in MSAL.MSAL.NET, and by extension, provides several log levels via the enum, including: log level settings: When you configure the Logging section of appsettings.json with a value for Microsoft.Identity, you enable logging in, MSAL.NET, and IdentityModel.Įxample: Logging section of an appsettings.json file (excerpt) that enables logging events at the informational level: To enable logging in, set a log level value for Microsoft.Identity in the Logging section of appsettings.json (log levels are covered in later in this article).įor example, this enables logging in and sets the log level to informational: Subscribing to middleware eventsįor information about logging in middleware, see Web API troubleshooting. The Microsoft.IdentityModel logs are useful to troubleshoot token validation issues. NET logs are also enabled to assist with troubleshooting and understanding any issues that may occur during token acquisition. Starting in Microsoft Identity Web v1.4.1, the MSAL. Microsoft Identity Web integrates with the logging available in ASP.NET Core. Microsoft Identity Web 0.1.x to 0.2.x migration.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |