Поделиться через


EventEntryExtensions Members

Include Protected Members
Include Inherited Members

Applies to: Semantic Logging 2.0

The EventEntryExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member TryFormatAsString
Formats an EventEntry as a string using an IEventTextFormatter.
Public methodStatic member TryFormatAsStringAndColor
Formats an EventEntry as a string using an IEventTextFormatter, and assigns a ConsoleColor depending on the event level.

See Also

EventEntryExtensions Class

Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility Namespace