Click or drag to resize
ILogEntry Interface
Defines the interface for a single logging data point.

Namespace: Rock.Logging
Assembly: Rock.Logging (in Rock.Logging.dll) Version: 0.9.2
public interface ILogEntry

The ILogEntry type exposes the following members.

Public methodGetThrottlingHashCode
Gets a hash of this instance of ILogEntry 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.
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 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.
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.
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. 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