WASM debug/trace auth logging for 7.0 or later
Note to self: Place in the logging topic and cross-link from the WASM security node, especially in the Troubleshooting sections of each doc.
For example ...
#if DEBUG
builder.Logging.AddFilter(
"Microsoft.AspNetCore.Components.WebAssembly.Authentication",
LogLevel.Debug);
#endif
... or in appsettings.Development.json ...
{
"DetailedErrors": true,
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.AspNetCore.Components.WebAssembly.Authentication": "Debug"
}
}
}
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
WASM debug/trace auth logging for 7.0 or later
Note to self: Place in the logging topic and cross-link from the WASM security node, especially in the Troubleshooting sections of each doc.
For example ...
... or in
appsettings.Development.json...{ "DetailedErrors": true, "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information", "Microsoft.AspNetCore.Components.WebAssembly.Authentication": "Debug" } } }Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.