Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​IdentityModel.​Logging.​TextWriterEventListener
Assembly: Microsoft.IdentityModel.Logging
Inheritance: object → System.​Diagnostics.​Tracing.​EventListener → TextWriterEventListener
Implemented Interfaces
- System.​IDisposable Implemented by: EventListener
Event listener that writes logs to a file or a fileStream provided by user.
Fields and Constants
public static readonly
string
DefaultLogFileName
Name of the default log file, excluding its path.
Methods
protected
void
OnEventWritten​(System.​Diagnostics.​Tracing.​EventWrittenEventArgs eventData)
Called whenever an event has been written by an event source for which the event listener has enabled events.
eventData
<see cref="T:System.Diagnostics.Tracing.EventWrittenEventArgs" />
public
void
Dispose​()
Releases all resources used by the current instance of the <see cref="T:Microsoft.IdentityModel.Logging.TextWriterEventListener" /> class.
public
void
DisableEvents​(System.​Diagnostics.​Tracing.​EventSource eventSource)
Inherited from System.​Diagnostics.​Tracing.​EventListener
public
void
EnableEvents​(System.​Diagnostics.​Tracing.​EventSource eventSource,
System.​Diagnostics.​Tracing.​EventLevel level)
Inherited from System.​Diagnostics.​Tracing.​EventListener
public
void
EnableEvents​(System.​Diagnostics.​Tracing.​EventSource eventSource,
System.​Diagnostics.​Tracing.​EventLevel level,
System.​Diagnostics.​Tracing.​EventKeywords matchAnyKeyword)
Inherited from System.​Diagnostics.​Tracing.​EventListener
public
void
EnableEvents​(System.​Diagnostics.​Tracing.​EventSource eventSource,
System.​Diagnostics.​Tracing.​EventLevel level,
System.​Diagnostics.​Tracing.​EventKeywords matchAnyKeyword,
System.​Collections.​Generic.​IDictionary?<​string, string> arguments)
Inherited from System.​Diagnostics.​Tracing.​EventListener
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object