LogEntry Members

Include Protected Members
Include Inherited Members

The LogEntry type exposes the following members.

Constructors

  Name Description
Ee779081.pubmethod(en-us,PandP.50).gif LogEntry Overloaded.

Methods

  Name Description
Ee779081.pubmethod(en-us,PandP.50).gif AddErrorMessage
Add an error or warning message to the start of the messages string builder.
Ee779081.pubmethod(en-us,PandP.50).gif Clone
Creates a new LogEntry that is a copy of the current instance.
Ee779081.pubmethod(en-us,PandP.50).gif Equals (Inherited from Object.)
Ee779081.protmethod(en-us,PandP.50).gif Finalize (Inherited from Object.)
Ee779081.pubmethod(en-us,PandP.50).gif GetHashCode (Inherited from Object.)
Ee779081.pubmethod(en-us,PandP.50).gifEe779081.static(en-us,PandP.50).gif GetProcessName
Gets the current process name.
Ee779081.pubmethod(en-us,PandP.50).gif GetType (Inherited from Object.)
Ee779081.protmethod(en-us,PandP.50).gif MemberwiseClone (Inherited from Object.)
Ee779081.pubmethod(en-us,PandP.50).gif ToString
Returns a String that represents the current LogEntry, using a default formatting template.
(Overrides Object.ToString().)

Properties

  Name Description
Ee779081.pubproperty(en-us,PandP.50).gif ActivityId
Tracing activity id
Ee779081.pubproperty(en-us,PandP.50).gif ActivityIdString
Tracing activity id as a string to support WMI Queries
Ee779081.pubproperty(en-us,PandP.50).gif AppDomainName
The AppDomain in which the program is running
Ee779081.pubproperty(en-us,PandP.50).gif Categories
Category name used to route the log entry to a one or more trace listeners.
Ee779081.pubproperty(en-us,PandP.50).gif 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
Ee779081.pubproperty(en-us,PandP.50).gif ErrorMessages
Gets the error message with the LogEntry
Ee779081.pubproperty(en-us,PandP.50).gif EventId
Event number or identifier.
Ee779081.pubproperty(en-us,PandP.50).gif ExtendedProperties
Dictionary of key/value pairs to record.
Ee779081.pubproperty(en-us,PandP.50).gif LoggedSeverity

Gets the string representation of the Severity enumeration.

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

See Also

LogEntry Class

Microsoft.Practices.EnterpriseLibrary.Logging Namespace