LogEntry
Contents
[
Hide
]LogEntry class
Represents a log message. Contains the common properties that are required for all log messages.
Constructors
| Name | Description |
|---|---|
| LogEntry (13 overloads) | Initialize a new instance of a LogEntry class. |
Methods
| Name | Description |
|---|---|
| AddErrorMessage | 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. |
| get_AppDomainName | The AppDomain in which we are running |
| get_BinaryDataMessage | Binary message body to log. |
| get_Category | Category name used to route the log entry to a one or more sinks. |
| get_ContextualProperties | Dictionary of key/value pairs to record. |
| get_ErrorMessages | Gets the error message with the LogEntry |
| get_EventId | Event number or identifier. |
| get_InnerException | Gets the inner exception object. |
| get_MachineName | Name of the computer. |
| get_Message | Message body to log. Value from ToString() method from message object. |
| get_MessageEncoding | Encoding for binary message body |
| get_SequenceId | The unique identifier of log event which is automatically generated and monotonously increasing. |
| get_Severity | Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error). |
| get_ThreadName | The name of the .NET thread. |
| get_TimeStamp | Date and time of the log entry message. |
| get_Title | Additional description of the log entry message. |
| set_AppDomainName | The AppDomain in which we are running |
| set_BinaryDataMessage | Binary message body to log. |
| set_Category | Category name used to route the log entry to a one or more sinks. |
| set_ContextualProperties | Dictionary of key/value pairs to record. |
| set_EventId | Event number or identifier. |
| set_InnerException | Sets the inner exception object. |
| set_MachineName | Name of the computer. |
| set_Message | Message body to log. Value from ToString() method from message object. |
| set_MessageEncoding | Encoding for binary message body |
| set_Severity | Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error). |
| set_ThreadName | The name of the .NET thread. |
| set_TimeStamp | Date and time of the log entry message. |
| set_Title | Additional description of the log entry message. |
| ToString | |
| FormatterResults |