Skip to content

Instantly share code, notes, and snippets.

View jorrit's full-sized avatar

Jorrit Schippers jorrit

View GitHub Profile
@jorrit
jorrit / IdentityModel logging.cs
Last active August 5, 2022 10:29
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);