IdentityModelEventSource Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Event source based logger to log different events.
[System.Diagnostics.Tracing.EventSource(Name="Microsoft.IdentityModel.EventSource")]
public class IdentityModelEventSource : System.Diagnostics.Tracing.EventSource
[<System.Diagnostics.Tracing.EventSource(Name="Microsoft.IdentityModel.EventSource")>]
type IdentityModelEventSource = class
inherit EventSource
Public Class IdentityModelEventSource
Inherits EventSource
- Inheritance
-
IdentityModelEventSource
- Attributes
Properties
HeaderWritten |
Indicates whether or the log message header (contains library version, date/time, and PII debugging information) has been written. |
HiddenPIIString |
String that is used in place of any arguments to log messages if the 'ShowPII' flag is set to false. |
HiddenSecurityArtifactString |
String that is used in place of any arguments to log messages if the 'LogCompleteSecurityArtifact' flag is set to false. |
LogCompleteSecurityArtifact |
Flag which indicates whether or not complete Microsoft.IdentityModel.Logging.SecurityArtifact is shown in logs when ShowPII is set to true. False by default. |
Logger |
Static logger that is exposed externally. An external application or framework can hook up a listener to this event source to log data in a custom way. |
LogLevel |
Minimum log level to log events. Default is Warning. |
ShowPII |
Flag which indicates whether or not PII is shown in logs. False by default. |
Methods
Write(EventLevel, Exception, String, Object[]) |
Writes an exception log by using the provided event identifer, exception argument, string argument, arguments list and current UTC time. |
Write(EventLevel, Exception, String) |
Writes an exception log by using the provided event identifer, exception argument, string argument and current UTC time. |
WriteAlways(String, Object[]) |
Writes an event log by using the provided string argument, current UTC time and the provided arguments list. |
WriteAlways(String) |
Writes an event log by using the provided string argument and current UTC time. No level filtering is done on the event. |
WriteCritical(String, Object[]) |
Writes a critical event log by using the provided string argument, current UTC time and the provided arguments list. |
WriteCritical(String) |
Writes a critical event log by using the provided string argument and current UTC time. |
WriteError(String, Object[]) |
Writes an error event log by using the provided string argument, current UTC time and the provided arguments list. |
WriteError(String) |
Writes an error event log by using the provided string argument and current UTC time. |
WriteInformation(String, Object[]) |
Writes an information event log by using the provided string argument, current UTC time and the provided arguments list. |
WriteInformation(String) |
Writes an information event log by using the provided string argument and current UTC time. |
WriteVerbose(String, Object[]) |
Writes a verbose event log by using the provided string argument, current UTC time and the provided arguments list. |
WriteVerbose(String) |
Writes a verbose event log by using the provided string argument and current UTC time. |
WriteWarning(String, Object[]) |
Writes a warning event log by using the provided string argument, current UTC time and the provided arguments list. |
WriteWarning(String) |
Writes a warning event log by using the provided string argument and current UTC time. |