PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​Event­SourceEvent­Source­Logging­Backend
Open sandboxFocus

EventSourceLoggingBackend Class

Logging back-end that uses EventSource.

Inheritance
System.Object
EventSourceLoggingBackend
Implements
IDisposable
Namespace: PostSharp.Patterns.Diagnostics.Backends.EventSource
Assembly: PostSharp.Patterns.Diagnostics.Backends.Tracing.dll
Syntax
public class EventSourceLoggingBackend : TextLoggingBackend
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.

Extension Methods

LoggingConfigurationManager.ConfigureFromXmlWithAutoReloadAsync(LoggingBackend, Uri, TimeSpan, CancellationToken)
LoggingConfigurationManager.StopAutoReloadConfigurationAsync(LoggingBackend)
LoggingConfigurationManager.ConfigureFromXmlAsync(LoggingBackend, Uri, CancellationToken)
LoggingConfigurationManager.ConfigureFromXml(LoggingBackend, XDocument, Boolean)
LoggingConfigurationManager.ConfigureFromXml(LoggingBackend, XElement, Boolean)
LoggingConfigurationManager.ResetConfiguration(LoggingBackend)