Skip to content

Instantly share code, notes, and snippets.

@jorrit
Last active August 5, 2022 10:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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