forked from zsh2401/AutumnBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ILogger.cs
31 lines (30 loc) · 857 Bytes
/
ILogger.cs
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
using System;
using System.Collections.Generic;
using System.Text;
namespace AutumnBox.Logging
{
/// <summary>
/// Logger
/// </summary>
public interface ILogger
{
/// <summary>
/// 发送日志
/// </summary>
/// <param name="level"></param>
/// <param name="message"></param>
void Log(string level, object message);
/// <summary>
/// 发送带有异常信息的日志
/// </summary>
/// <param name="level"></param>
/// <param name="message"></param>
/// <param name="e"></param>
void Log(string level, object message, Exception e);
}
/// <summary>
/// 泛型的日志器,根据泛型参数
/// </summary>
/// <typeparam name="TCategory"></typeparam>
public interface ILogger<TCategory> : ILogger { }
}