Last active
August 5, 2022 10:29
-
-
Save jorrit/0712ed32534b45ccca393e4c86b08526 to your computer and use it in GitHub Desktop.
Enable .net identity model logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IdentityModelEventSource.Logger.LogLevel = EventLevel.Verbose; | |
IdentityModelEventSource.ShowPII = true; | |
var listener = new TextWriterEventListener(new StreamWriter(Console.OpenStandardOutput()) | |
{ | |
AutoFlush = true, | |
}); | |
listener.EnableEvents(IdentityModelEventSource.Logger, EventLevel.LogAlways); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment