IAPILog Interface

Relativity API
Logging wrapper of Relativity.Logging

Namespace:  Relativity.API
Assembly:  Relativity.API (in Relativity.API.dll) Version: 640db774aa42dfbe1785add27fbb41844ec5c7d4
Syntax

public interface IAPILog

The IAPILog type exposes the following members.

Methods

  NameDescription
Public methodForContext(Type)
Adds the full name of the source's Type to the log information.
Public methodForContext(String, Object, Boolean)
Adds the value object with the propertyName to the log information. DestructureObjects false will T
Public methodForContext<T>()
Adds the full name of Type T to the log information.
Public methodCode exampleLogContextPushProperty
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();
}
Public methodLogDebug(String,Object[])
Debug level logging.
Public methodLogDebug(Exception, String,Object[])
Debug level logging with an exception.
Public methodLogError(String,Object[])
Error level logging.
Public methodLogError(Exception, String,Object[])
Error level logging with an exception.
Public methodLogFatal(String,Object[])
Fatal level logging.
Public methodLogFatal(Exception, String,Object[])
Fatal level logging with an exception.
Public methodLogInformation(String,Object[])
Information level logging.
Public methodLogInformation(Exception, String,Object[])
Information level logging with an exception.
Public methodLogVerbose(String,Object[])
Verbose level logging.
Public methodLogVerbose(Exception, String,Object[])
Verbose level logging with an exception.
Public methodLogWarning(String,Object[])
Warning level logging.
Public methodLogWarning(Exception, String,Object[])
Warning level logging with an exception.
Top
See Also

Reference