IPerformanceLog Interface

Relativity Kepler

[Missing <summary> documentation for "T:Relativity.Kepler.Logging.IPerformanceLog"]

Namespace:  Relativity.Kepler.Logging
Assembly:  Relativity.Kepler (in Relativity.Kepler.dll) Version: local build
Syntax

C#
public interface IPerformanceLog

The IPerformanceLog type exposes the following members.

Methods

  NameDescription
Public methodForContext(Type)
Adds the full name of the source's Type to the log information.
Public methodForContext(String, Object, Boolean)
Adds the value object with the propertyName to the log information. DestructureObjects false will T
Public methodForContext<T>()
Adds the full name of Type T to the log information.
Public methodIsPerformanceEnabled
Returns true if Performance Logging is enabled.
Public methodCode exampleLogContextPushProperty
Adds the obj data with the propertyName to the log information of all logs that happen within a using statement.
Examples

In this C# example any loggers within the MethodThatLogs() method will have the PushProperty "User".
using (var pushLogger = _logger.LogContextPushProperty("User", user))
{
    MethodThatLogs();
}
Public methodLogInformation
Log the message as Information.
Top
See Also

Reference