<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

LogExtensions

static class LogExtensions
Defines extension methods for ILog.
public static IDisposable LogImportContextPushProperties(this ILog logger, object value)

This method pushes all public properties from given object to ILog instance logging context.

public static void LogObjectAsDictionary(this ILog logger, string messageTemplate, object value)

Write an informational log message and transforms value into a dictionary that's supplied to the logging framework.

public static void LogObjectAsDictionary(this ILog logger, string messageTemplate, object value, Func<PropertyInfo, bool> filter)

Write an informational log message and transforms the optionally filtered value into a dictionary that's supplied to the logging framework.

public static void LogUserContextInformation(this ILog logger, string messageTemplate, ICredentials credentials)

It logs jwt token claims on information logging level according to provided message template.