LogEntry

LogEntry class

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

The LogEntry type exposes the following members:

Constructors

NameDescription
LogEntry()Initialize a new instance of a LogEntry class.
LogEntry(message)Initializes a new instance of the LogEntry class
LogEntry(message, time)Initializes a new instance of the LogEntry class
LogEntry(message, severity)Initializes a new instance of the LogEntry class
LogEntry(binary_data_message)Initializes a new instance of the LogEntry class
LogEntry(binary_data_message, message_encoding)Initializes a new instance of the LogEntry class

Properties

NameDescription
messageMessage body to log. Value from ToString() method from message object.
binary_data_messageBinary message body to log.
message_encodingEncoding for binary message body
categoryCategory name used to route the log entry to a one or more sinks.
event_idEvent number or identifier.
severityLog entry severity as a severity enumeration. (Unspecified, Information, Warning or Error).
titleAdditional description of the log entry message.
time_stampDate and time of the log entry message.
machine_nameName of the computer.
app_domain_nameThe AppDomain in which we are running
thread_nameThe name of the .NET thread.
error_messagesGets the error message with the
sequence_idThe unique identifier of log event which is automatically generated
and monotonously increasing.

Methods

NameDescription
clone()
add_error_message(message)

See Also