Class LogEntry
Contents
[
Hide
]LogEntry class
Represents a log message. Contains the common properties that are required for all log messages.
public class LogEntry
Constructors
| Name | Description |
|---|---|
| LogEntry() | Initialize a new instance of a LogEntry class. |
| LogEntry(byte[]) | Create a new instance of LogEntry with a full set of constructor parameters |
| LogEntry(string) | Initialize a new instance of a LogEntry class. |
| LogEntry(byte[], Encoding) | Create a new instance of LogEntry with a full set of constructor parameters |
| LogEntry(byte[], IDictionary<string, string>) | Create a new instance of LogEntry with a full set of constructor parameters |
| LogEntry(string, DateTime) | Initialize a new instance of a LogEntry class. |
| LogEntry(string, Exception) | Initialize a new instance of a LogEntry class. |
| LogEntry(string, IDictionary<string, string>) | Create a new instance of LogEntry with a full set of constructor parameters |
| LogEntry(string, LogLevel) | Initialize a new instance of a LogEntry class. |
| LogEntry(byte[], Encoding, IDictionary<string, string>) | Create a new instance of LogEntry with a full set of constructor parameters |
| LogEntry(string, Exception, LogLevel) | Initialize a new instance of a LogEntry class. |
| LogEntry(string, LogLevel, string, int, string, IDictionary<string, string>) | Create a new instance of LogEntry with a full set of constructor parameters |
| LogEntry(string, Exception, LogLevel, string, int, string, IDictionary<string, string>) | Create a new instance of LogEntry with a full set of constructor parameters |
Properties
| Name | Description |
|---|---|
| AppDomainName { get; set; } | The AppDomain in which we are running |
| BinaryDataMessage { get; set; } | Binary message body to log. |
| Category { get; set; } | Category name used to route the log entry to a one or more sinks. |
| ContextualProperties { get; set; } | Dictionary of key/value pairs to record. |
| ErrorMessages { get; } | Gets the error message with the LogEntry |
| EventId { get; set; } | Event number or identifier. |
| InnerException { get; set; } | Gets or sets the inner exception object. |
| MachineName { get; set; } | Name of the computer. |
| Message { get; set; } | Message body to log. Value from ToString() method from message object. |
| MessageEncoding { get; set; } | Encoding for binary message body |
| SequenceId { get; } | The unique identifier of log event which is automatically generated and monotonously increasing. |
| Severity { get; set; } | Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error). |
| ThreadName { get; set; } | The name of the .NET thread. |
| TimeStamp { get; set; } | Date and time of the log entry message. |
| Title { get; set; } | Additional description of the log entry message. |
Methods
| Name | Description |
|---|---|
| virtual AddErrorMessage(string) | Add an error or warning message to the start of the messages string builder. Used by the distributor to record problems. |
| Clone() | Creates a new LogEntry that is a copy of the current instance. |
| override ToString() |
See Also
- namespace Aspose.Email.Tools.Logging
- assembly Aspose.Email