// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace System.Net.Http.Formatting
{
///
/// Interface to log events that occur during formatter reads.
///
public interface IFormatterLogger
{
///
/// Logs an error.
///
/// The path to the member for which the error is being logged.
/// The error message to be logged.
void LogError(string errorPath, string errorMessage);
///
/// Logs an error.
///
/// The path to the member for which the error is being logged.
/// The exception to be logged.
void LogError(string errorPath, Exception exception);
}
}