<PackageReference Include="Newtonsoft.Json" Version="7.0.1" />

ITraceWriter

public interface ITraceWriter
Represents a trace writer.

Gets the TraceLevel that will be used to filter the trace messages passed to the writer. For example a filter level of Info will exclude Verbose messages and include Info, Warning and Error messages.

void Trace(TraceLevel level, string message, Exception ex)

Writes the specified trace level, message and optional exception.