Logging back-end that uses EventSource.
Implements
Namespace: PostSharp.Patterns.Diagnostics.Backends.EventSource
Assembly: PostSharp.Patterns.Diagnostics.Backends.Tracing.dll
Syntax
public class EventSourceLoggingBackend : TextLoggingBackend, IDisposable
Remarks
Can be used with ETW or Enterprise Library Semantic Logging.
Constructors
Name | Description |
---|---|
EventSourceLoggingBackend() | Initializes a new EventSourceLoggingBackend with the default event source. |
EventSourceLoggingBackend(PostSharpEventSource) | Initializes a new EventSourceLoggingBackend and specifies a custom PostSharpEventSource. |
Properties
Name | Description |
---|---|
EventSource | The EventSource to which events will be written. |
Options | Gets the back-end options. |
Methods
Name | Description |
---|---|
CreateRecordBuilder() | Creates a new LogRecordBuilder. |
CreateTypeSource(LoggingNamespaceSource, Type) | Creates a LoggingTypeSource for the given role and type. |
GetTextBackendOptions() | Gets the options. |