IAPILogLogContextPushProperty Method

Relativity API
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();
}

Namespace:  Relativity.API
Assembly:  Relativity.API (in Relativity.API.dll) Version: 17.0.1.1 588f15fd7550dbf54835f3417a0142d4ea37dbb5
Syntax

IDisposable LogContextPushProperty(
	string propertyName,
	Object obj
)

Parameters

propertyName
Type: SystemString
The property name to display in the log.
obj
Type: SystemObject
The object to deserialize and add to the log.

Return Value

Type: IDisposable
See Also

Reference