IAPILog.LogContextPushProperty 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: 640db774aa42dfbe1785add27fbb41844ec5c7d4
Syntax

IDisposable LogContextPushProperty(
	string propertyName,
	Object obj
)

Parameters

propertyName
Type: System.String
The property name to display in the log.
obj
Type: System.Object
The object to deserialize and add to the log.

Return Value

Type: IDisposable
See Also

Reference