Open sandboxFocus

Method SetThis

SetThis<T>(T)

Sets the this (instance) value and uses the default formatter. This method is only invoked if the IncludeThisValue property is true.

Declaration
public void SetThis<T>(T value)
Parameters
Type Name Description
T value

The value of the this instance.

Type Parameters
Name Description
T

Type of the class being logged.

SetThis<T>(T, IFormatter<T>)

Sets the this (instance) value and uses a given formatter.

Declaration
public virtual void SetThis<T>(T value, IFormatter<T> formatter)
Parameters
Type Name Description
T value

The value of the this instance.

IFormatter<T> formatter

The formatter to be used.

Type Parameters
Name Description
T

Type of the class being logged.