forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIFormatterLogger.cs
More file actions
25 lines (23 loc) · 994 Bytes
/
Copy pathIFormatterLogger.cs
File metadata and controls
25 lines (23 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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
{
/// <summary>
/// Interface to log events that occur during formatter reads.
/// </summary>
public interface IFormatterLogger
{
/// <summary>
/// Logs an error.
/// </summary>
/// <param name="errorPath">The path to the member for which the error is being logged.</param>
/// <param name="errorMessage">The error message to be logged.</param>
void LogError(string errorPath, string errorMessage);
/// <summary>
/// Logs an error.
/// </summary>
/// <param name="errorPath">The path to the member for which the error is being logged.</param>
/// <param name="exception">The exception to be logged.</param>
void LogError(string errorPath, Exception exception);
}
}