<PackageReference Include="Relativity.Api" Version="10.3.191.8" />

IAPILog

public interface IAPILog
Logging wrapper of Relativity.Logging

Adds the full name of Type T to the log information.

Adds the full name of the source's Type to the log information.

IAPILog ForContext(string propertyName, object value, bool destructureObjects)

Adds the value object with the propertyName to the log information. DestructureObjects false will T

IDisposable LogContextPushProperty(string propertyName, object obj)

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". using (var pushLogger = _logger.LogContextPushProperty("User", user)) { MethodThatLogs(); }

void LogDebug(string messageTemplate, object[] propertyValues)

Debug level logging.

void LogDebug(Exception exception, string messageTemplate, object[] propertyValues)

Debug level logging with an exception.

void LogError(string messageTemplate, object[] propertyValues)

Error level logging.

void LogError(Exception exception, string messageTemplate, object[] propertyValues)

Error level logging with an exception.

void LogFatal(string messageTemplate, object[] propertyValues)

Fatal level logging.

void LogFatal(Exception exception, string messageTemplate, object[] propertyValues)

Fatal level logging with an exception.

void LogInformation(string messageTemplate, object[] propertyValues)

Information level logging.

void LogInformation(Exception exception, string messageTemplate, object[] propertyValues)

Information level logging with an exception.

void LogVerbose(string messageTemplate, object[] propertyValues)

Verbose level logging.

void LogVerbose(Exception exception, string messageTemplate, object[] propertyValues)

Verbose level logging with an exception.

void LogWarning(string messageTemplate, object[] propertyValues)

Warning level logging.

void LogWarning(Exception exception, string messageTemplate, object[] propertyValues)

Warning level logging with an exception.