Click or drag to resize

LogEventPublisher Class

Can be used to publish event messages.
Inheritance Hierarchy
SystemObject
  GSF.DiagnosticsLogEventPublisher

Namespace: GSF.Diagnostics
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public sealed class LogEventPublisher
View Source

The LogEventPublisher type exposes the following members.

Properties
 NameDescription
Public propertyHasSubscribers Gets if this publisher has any subscribers to it. This does not have to be checked as messages won't route if there are not subscribers. This is mainly used to skip the code that would generate the data for the LogMessage.
Public propertyShouldRaiseMessageSupressionNotifications Gets/Sets if a log message should be generated when message suppression occurs. Default is true;
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodPublish(String, String, Exception) Raises a log message with the provided data.
Public methodPublish(MessageFlags, String, String, Exception) Raises a log message with the provided data.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also