<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />

IFormatterLogger

public interface IFormatterLogger
Specifies a callback interface that a formatter can use to log errors while reading.
void LogError(string errorPath, string errorMessage)

Logs an error.

void LogError(string errorPath, Exception exception)

Logs an error.