Partager via


ObservableEventListener Members

Include Protected Members
Include Inherited Members

Applies to: Semantic Logging 2.0

The ObservableEventListener type exposes the following members.

Constructors

  Name Description
Public method ObservableEventListener
Initializes a new instance of the ObservableEventListener class

Methods

  Name Description
Public method DisableEvents(EventSource)
Disables all events for the specified event source.
(Inherited from EventListener.)
Public method DisableEvents(String)
Disables all events for the specified event source.
Public method Dispose
Releases all resources used by the current instance and unsubscribes all the observers.
(Overrides EventListener.Dispose().)
Public method EnableEvents(EventSource, EventLevel)
Enables events for the specified event source that has the specified verbosity level or lower.
(Inherited from EventListener.)
Public method EnableEvents(String, EventLevel)
Enables events for the event source with the specified name that have the specified verbosity level or lower.
Public method EnableEvents(EventSource, EventLevel, EventKeywords)
Enables events for the specified event source that has the specified verbosity level or lower, and matching keyword flags.
(Inherited from EventListener.)
Public method EnableEvents(String, EventLevel, EventKeywords)
Enables events for the specified event source that has the specified verbosity level or lower, and matching keyword flags.
Public method EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String, String>)
Enables events for the specified event source that has the specified verbosity level or lower, matching event keyword flag, and matching arguments.
(Inherited from EventListener.)
Public method EnableEvents(String, EventLevel, EventKeywords, IDictionary<String, String>)
Enables events for the specified event source that has the specified verbosity level or lower, and matching keyword flags.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Subscribe
Notifies the provider that an observer is to receive notifications.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Extension Methods

  Name Description
Public Extension Method LogToConsole
Subscribes to an IObservable<T> using a ConsoleSink.
(Defined by ConsoleLog.)
Public Extension Method LogToFlatFile
Subscribes to an IObservable<T> using a FlatFileSink.
(Defined by FlatFileLog.)
Public Extension Method LogToRollingFlatFile
Subscribes to an IObservable<T> using a RollingFlatFileSink.
(Defined by RollingFlatFileLog.)
Public Extension Method LogToSqlDatabase
Subscribes to an IObservable<T> using a SqlDatabaseSink.
(Defined by SqlDatabaseLog.)
Public Extension Method LogToWindowsAzureTable
Subscribes to an IObservable<T> using a WindowsAzureTableSink.
(Defined by WindowsAzureTableLog.)
Public Extension Method SubscribeWithConversion
Subscribes an IObserver<T> sink by doing a straight projection of a sequence of EventEntry and converting it to a CloudEventEntry entity.
(Defined by CloudEventEntryExtensions.)
Public Extension Method SubscribeWithFormatter
Subscribes an IObserver<T> sink by doing a straight projection of a sequence of EventEntry and applying a format using a IEventTextFormatter instance to convert it to a String message.
(Defined by EventEntryExtensions.)
Public Extension Method SubscribeWithFormatterAndColor
Subscribes a sink by doing a straight projection of a sequence of EventEntry and applying a format using a IEventTextFormatter and a IConsoleColorMapper instances to convert it to a sequence of entries for that sink.
(Defined by EventEntryExtensions.)

See Also

ObservableEventListener Class

Microsoft.Practices.EnterpriseLibrary.SemanticLogging Namespace