LogEntry Members

Include Protected Members
Include Inherited Members

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The LogEntry type exposes the following members.

Constructors

  Name Description
Public method LogEntry Overloaded.

Methods

  Name Description
Public method AddErrorMessage
Add an error or warning message to the start of the messages string builder.
Public method Clone
Creates a new LogEntry that is a copy of the current instance.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public methodStatic member GetProcessName
Gets the current process name.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString
Returns a String that represents the current LogEntry, using a default formatting template.
(Overrides Object.ToString().)

Properties

  Name Description
Public property ActivityId
Tracing activity id
Public property ActivityIdString
Tracing activity id as a string to support WMI Queries
Public property AppDomainName
The AppDomain in which the program is running
Public property Categories
Category name used to route the log entry to a one or more trace listeners.
Public property CategoriesStrings
Category names used to route the log entry to a one or more trace listeners. This readonly property is available to support WMI queries
Public property ErrorMessages
Gets the error message with the LogEntry
Public property EventId
Event number or identifier.
Public property ExtendedProperties
Dictionary of key/value pairs to record.
Public property LoggedSeverity

Gets the string representation of the Severity enumeration.

Public property MachineName
Name of the computer.
Public property ManagedThreadName
The name of the .NET thread.
Public property Message
Message body to log. Value from ToString() method from message object.
Public property Priority
Importance of the log message. Only messages whose priority is between the minimum and maximum priorities (inclusive) will be processed.
Public property ProcessId
The Win32 process ID for the current running process.
Public property ProcessName
The name of the current running process.
Public property RelatedActivityId
Related activity id
Public property Severity
Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error).
Public property TimeStamp
Date and time of the log entry message.
Public property TimeStampString
Read-only property that returns the timeStamp formatted using the current culture.
Public property Title
Additional description of the log entry message.
Public property Win32ThreadId
The Win32 Thread ID for the current thread.

See Also

LogEntry Class

Microsoft.Practices.EnterpriseLibrary.Logging Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.