Skip to content

Instantly share code, notes, and snippets.

@jorrit
Last active August 5, 2022 10:29
Show Gist options
  • Save jorrit/0712ed32534b45ccca393e4c86b08526 to your computer and use it in GitHub Desktop.
Save jorrit/0712ed32534b45ccca393e4c86b08526 to your computer and use it in GitHub Desktop.
Enable .net identity model logging
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