LogEntry Class

Represents a log message. Contains the common properties that are required for all log messages.
Inheritance Hierarchy
SystemObject
  Aspose.Email.Tools.LoggingLogEntry

Namespace:  Aspose.Email.Tools.Logging
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public class LogEntry

The LogEntry type exposes the following members.

Constructors
  NameDescription
Public methodLogEntry
Initialize a new instance of a LogEntry class.
Public methodLogEntry(Byte)
Create a new instance of LogEntry with a full set of constructor parameters
Public methodLogEntry(String)
Initialize a new instance of a LogEntry class.
Public methodLogEntry(Byte, IDictionaryString, String)
Create a new instance of LogEntry with a full set of constructor parameters
Public methodLogEntry(Byte, Encoding)
Create a new instance of LogEntry with a full set of constructor parameters
Public methodLogEntry(String, LogLevel)
Initialize a new instance of a LogEntry class.
Public methodLogEntry(String, IDictionaryString, String)
Create a new instance of LogEntry with a full set of constructor parameters
Public methodLogEntry(String, DateTime)
Initialize a new instance of a LogEntry class.
Public methodLogEntry(String, Exception)
Initialize a new instance of a LogEntry class.
Public methodLogEntry(Byte, Encoding, IDictionaryString, String)
Create a new instance of LogEntry with a full set of constructor parameters
Public methodLogEntry(String, Exception, LogLevel)
Initialize a new instance of a LogEntry class.
Public methodLogEntry(String, LogLevel, String, Int32, String, IDictionaryString, String)
Create a new instance of LogEntry with a full set of constructor parameters
Public methodLogEntry(String, Exception, LogLevel, String, Int32, String, IDictionaryString, String)
Create a new instance of LogEntry with a full set of constructor parameters
Properties
  NameDescription
Public propertyAppDomainName
The AppDomain in which we are running
Public propertyBinaryDataMessage
Binary message body to log.
Public propertyCategory
Category name used to route the log entry to a one or more sinks.
Public propertyContextualProperties
Dictionary of key/value pairs to record.
Public propertyErrorMessages
Gets the error message with the LogEntry
Public propertyEventId
Event number or identifier.
Public propertyInnerException
Gets or sets the inner exception object.
Public propertyMachineName
Name of the computer.
Public propertyMessage
Message body to log. Value from ToString() method from message object.
Public propertyMessageEncoding
Encoding for binary message body
Public propertySequenceId
The unique identifier of log event which is automatically generated and monotonously increasing.
Public propertySeverity
Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error).
Public propertyThreadName
The name of the .NET thread.
Public propertyTimeStamp
Date and time of the log entry message.
Public propertyTitle
Additional description of the log entry message.
Methods
  NameDescription
Public methodAddErrorMessage
Add an error or warning message to the start of the messages string builder. Used by the distributor to record problems.
Public methodClone
Creates a new LogEntry that is a copy of the current instance.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString
(Overrides ObjectToString.)
See Also