Click or drag to resize
LogEntry Class
Represents a single logging data point.
Inheritance Hierarchy

Namespace: Rock.Logging.Defaults
Assembly: Rock.Logging (in Rock.Logging.dll) Version: 0.9.2
public class LogEntry : ILogEntry

The LogEntry type exposes the following members.

Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetThrottlingHashCode
Gets a hash of this instance of LogEntry for the purpose of throttling log entries. If the value returned from this log entry is equal to the value from another log entry, then they are considered duplicates. Depending on the throttling configuration of a logger, duplicate log etries may or may not be sent its log providers.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Extension Methods
Public Extension MethodAddCallerInfo (Defined by AddCallerInfoExtension.)
Public Extension MethodCode exampleSetException
Sets the value of ExceptionDetails to a string representation of the provided exception. Also sets various extended properties (inner exception messages and items in Data).
(Defined by SetExceptionExtensionMethod.)
Public fieldStatic memberXmlNamespace
The namespace that should be used for xml documents that describe a log entry.
Public propertyApplicationId
Gets or sets the application id.
Public propertyApplicationUserId
The ID of the account that is running the application. By default, this is set to UserName.
Public propertyCreateTime
Gets or sets the time when the entry was created. This is automatically set when a new LogEntry is initialized.
Public propertyEnvironment
Gets or sets the environment (e.g. Test or Prod) in which the log entry was created.
Public propertyExceptionContext
Gets or sets arbitrary contextual information related to a thrown exception. This value should give a developer additional information to help debug or fix the issue.
Public propertyExceptionDetails
Gets or sets the details of an exception.
Public propertyExceptionType
Gets or sets the type of the exception. While the value of this property can be arbitrary, when SetException(ILogEntry, Exception, String) is called, its value will be set to the full name of the type of the exception.
Public propertyExtendedProperties
Gets or sets the extended properties. This property is used to add any additional information into the log entry.
Public propertyLevel
Gets or sets the log level of the log entry (e.g. Debug or Error).
Public propertyMachineName
Gets or sets the name of the machine name the log entry was created on.
Public propertyMessage
Gets or sets the message that needs to be logged.
Public propertyUniqueId
Gets or sets an arbitrary unique identifier for the log entry. Its default value is a string representation of a new GUID. This value allows a log entry to be identified on the client-side. For example, a link to this log entry can be generated, client-side, before the log entry is added to a database. It is assumed that a database will index this value.
See Also