Click or drag to resize

LogMessage Class

An individual log message.
Inheritance Hierarchy
SystemObject
  GSF.DiagnosticsLogMessage

Namespace: GSF.Diagnostics
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
public sealed class LogMessage
View Source

The LogMessage type exposes the following members.

Properties
 NameDescription
Public propertyAssemblyName The Assembly associated with LogPublisher that generated the message.
Public propertyClassification The classification of the message
Public propertyEventName The event name of this log message.
Public propertyFlags The flags associated with the message
Public propertyLevel The level associated with the message
Public propertyMessageSuppression The suppression level assigned to this log message
Public propertyRelatedTypes All related types such as interfaces/parent classes for the current type.
Public propertyTypeName The Type associated with LogPublisher that generated the message.
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 methodGetMessage Gets the details of the message.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Top
Fields
 NameDescription
Public fieldCurrentStackMessages The message stack that existed when this LogMessage was published.
Public fieldCurrentStackTrace The stack trace that existed when this LogMessage was published.
Public fieldDetails A long text field with the details of the message. Can be String.Empty.
Public fieldEventPublisherDetails Contains details about the LogEventPublisher that published this LogMessage.
Public fieldException An exception object if one is provided. Can be null. Since the exception is not serialized to the disk, it will be null when loaded.
Public fieldExceptionString A string representation of the exception. Can be String.Empty. If loaded from the disk, since exception objects cannot be serialized, the Exception will be null and this field will have the string representation of Exception
Public fieldInitialStackMessages The message stack that existed when the LogPublisher was originally constructed.
Public fieldInitialStackTrace The stack trace that existed when the LogPublisher was originally constructed.
Public fieldManagedThreadID The Managed Thread ID of the thread that created this message. This is primarily to assist in future log viewing applications where it is beneficial to track the thread.
Public fieldMessage A specific message about the event giving more specifics about the actual message. Typically, this will be up to 1 line of text. Can be String.Empty.
Public fieldPreviousFirstChanceExceptionSequenceNumber A sequence number maintained by each thread thread of the previous first chance exception that was thrown. This is used to assist LogFileViewer associate log messages with properly handled first chance exceptions.
Public fieldUtcTime The time that the message was created.
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