forked from kurrent-io/ClientAPI.NetCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathILogger.cs
More file actions
56 lines (53 loc) · 2.45 KB
/
Copy pathILogger.cs
File metadata and controls
56 lines (53 loc) · 2.45 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System;
namespace EventStore.ClientAPI
{
/// <summary>
/// Simple abstraction of a logger.
/// </summary>
/// <remarks>
/// You can pass your own logging abstractions into the Event Store Client API. Just pass
/// in your own implementation of <see cref="ILogger"/> when constructing your client connection.
/// </remarks>
public interface ILogger
{
/// <summary>
/// Writes an error to the logger
/// </summary>
/// <param name="format">Format string for the log message.</param>
/// <param name="args">Arguments to be inserted into the format string.</param>
void Error(string format, params object[] args);
/// <summary>
/// Writes an error to the logger
/// </summary>
/// <param name="ex">A thrown exception.</param>
/// <param name="format">Format string for the log message.</param>
/// <param name="args">Arguments to be inserted into the format string.</param>
void Error(Exception ex, string format, params object[] args);
/// <summary>
/// Writes an information message to the logger
/// </summary>
/// <param name="format">Format string for the log message.</param>
/// <param name="args">Arguments to be inserted into the format string.</param>
void Info(string format, params object[] args);
/// <summary>
/// Writes an information message to the logger
/// </summary>
/// <param name="ex">A thrown exception.</param>
/// <param name="format">Format string for the log message.</param>
/// <param name="args">Arguments to be inserted into the format string.</param>
void Info(Exception ex, string format, params object[] args);
/// <summary>
/// Writes a debug message to the logger
/// </summary>
/// <param name="format">Format string for the log message.</param>
/// <param name="args">Arguments to be inserted into the format string.</param>
void Debug(string format, params object[] args);
/// <summary>
/// Writes a debug message to the logger
/// </summary>
/// <param name="ex">A thrown exception.</param>
/// <param name="format">Format string for the log message.</param>
/// <param name="args">Arguments to be inserted into the format string.</param>
void Debug(Exception ex, string format, params object[] args);
}
}