LogEntry

LogEntry class

Represents a log message. Contains the common properties that are required for all log messages.

Constructors

NameDescription
LogEntry (13 overloads)Initialize a new instance of a LogEntry class.

Methods

NameDescription
AddErrorMessageAdd an error or warning message to the start of the messages string builder. Used by the distributor to record problems.
CloneCreates a new LogEntry that is a copy of the current instance.
get_AppDomainNameThe AppDomain in which we are running
get_BinaryDataMessageBinary message body to log.
get_CategoryCategory name used to route the log entry to a one or more sinks.
get_ContextualPropertiesDictionary of key/value pairs to record.
get_ErrorMessagesGets the error message with the LogEntry
get_EventIdEvent number or identifier.
get_InnerExceptionGets the inner exception object.
get_MachineNameName of the computer.
get_MessageMessage body to log. Value from ToString() method from message object.
get_MessageEncodingEncoding for binary message body
get_SequenceIdThe unique identifier of log event which is automatically generated and monotonously increasing.
get_SeverityLog entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error).
get_ThreadNameThe name of the .NET thread.
get_TimeStampDate and time of the log entry message.
get_TitleAdditional description of the log entry message.
set_AppDomainNameThe AppDomain in which we are running
set_BinaryDataMessageBinary message body to log.
set_CategoryCategory name used to route the log entry to a one or more sinks.
set_ContextualPropertiesDictionary of key/value pairs to record.
set_EventIdEvent number or identifier.
set_InnerExceptionSets the inner exception object.
set_MachineNameName of the computer.
set_MessageMessage body to log. Value from ToString() method from message object.
set_MessageEncodingEncoding for binary message body
set_SeverityLog entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error).
set_ThreadNameThe name of the .NET thread.
set_TimeStampDate and time of the log entry message.
set_TitleAdditional description of the log entry message.
ToString
FormatterResults