LogPublisher Class

A publisher of log messages.

Definition

Namespace: Gemstone.Diagnostics
Assembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.110 -- Release Build+b4503491f6bb08c88fb6da624558b506a9176518
public class LogPublisher
Inheritance
Object    LogPublisher

Remarks

InitialStackMessages and InitialStackTrace can be modified so messages that are generated with this instance will have this data appended to the log message. The user can either call one of the Publish overloads to lazily publish a message, or they can register a message with RegisterEvent so calling this message will incur little overhead. If registering an event, the user can check HasSubscribers to determine if the log message can be skipped altogether. Registering events also allows the user to specify the auto-suppression algorithm and the depth of the stack trace that will be recorded on a message being raised.

Properties

MaxDistinctEventPublisherCount The maximum number of distinct events that this publisher can generate. (Default: 20)

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Publish(MessageLevel, String, String, String, Exception) Raises a log message with the provided data.
Publish(MessageLevel, MessageFlags, String, String, String, Exception) Raises a log message with the provided data.
RegisterEvent(MessageLevel, String) Initializes an LogEventPublisher with the provided values.
RegisterEvent(MessageLevel, MessageFlags, String) Initializes an LogEventPublisher with the provided values.
RegisterEvent(MessageLevel, String, Int32, MessageRate, Int32) Initializes an LogEventPublisher with the provided values.
RegisterEvent(MessageLevel, MessageFlags, String, Int32, MessageRate, Int32) Initializes an LogEventPublisher with the provided values.
ToString Gets the full name of the type.
(Overrides ObjectToString)

Fields

InitialStackMessages The stack messages that existed when this publisher was created. This can be modified by the user of this publisher. Any messages that get published by this class will automatically have this data added to the log message.
InitialStackTrace The stack trace that existed when this publisher was created. This can be modified by the user of this publisher. Any messages that get published by this class will automatically have this data added to the log message.

See Also