-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathILog.cs
More file actions
57 lines (51 loc) · 2.14 KB
/
Copy pathILog.cs
File metadata and controls
57 lines (51 loc) · 2.14 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
57
namespace ExcelDataReader.Log;
/// <summary>
/// Custom interface for logging messages.
/// </summary>
public interface ILog
{
/// <summary>
/// Debug level of the specified message. The other method is preferred since the execution is deferred.
/// </summary>
/// <param name="message">The message.</param>
/// <param name="formatting">The formatting.</param>
void Debug(string message, params object[] formatting);
/// <summary>
/// Info level of the specified message. The other method is preferred since the execution is deferred.
/// </summary>
/// <param name="message">The message.</param>
/// <param name="formatting">The formatting.</param>
void Info(string message, params object[] formatting);
/// <summary>
/// Warn level of the specified message. The other method is preferred since the execution is deferred.
/// </summary>
/// <param name="message">The message.</param>
/// <param name="formatting">The formatting.</param>
void Warn(string message, params object[] formatting);
/// <summary>
/// Error level of the specified message. The other method is preferred since the execution is deferred.
/// </summary>
/// <param name="message">The message.</param>
/// <param name="formatting">The formatting.</param>
#pragma warning disable CA1716 // Identifiers should not match keywords
void Error(string message, params object[] formatting);
#pragma warning restore CA1716 // Identifiers should not match keywords
/// <summary>
/// Fatal level of the specified message. The other method is preferred since the execution is deferred.
/// </summary>
/// <param name="message">The message.</param>
/// <param name="formatting">The formatting.</param>
void Fatal(string message, params object[] formatting);
}
/// <summary>
/// Factory interface for loggers.
/// </summary>
public interface ILogFactory
{
/// <summary>
/// Create a logger for the specified type.
/// </summary>
/// <param name="loggingType">The type to create a logger for.</param>
/// <returns>The logger instance.</returns>
ILog Create(Type loggingType);
}