Adds the obj data with the propertyName to the log information of all logs that happen within a using statement.
In this C# example any loggers within the MethodThatLogs() method will have the PushProperty "User".
Examples
using (var pushLogger = _logger.LogContextPushProperty("User", user)) { MethodThatLogs(); }
Namespace: Relativity.API
Assembly: Relativity.API (in Relativity.API.dll) Version: 640db774aa42dfbe1785add27fbb41844ec5c7d4
Syntax
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: IDisposableSee Also