| 123456789101112131415161718192021222324252627282930 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace WpfApp1
- {
- /// <summary>
- /// 通用的日志接口
- /// </summary>
- public interface ILogger
- {
- /// <summary>
- /// 调试跟踪(预留)
- /// </summary>
- /// <param name="message"></param>
- void Trace(string message);
- void Debug(string message);
- void Info(string message);
- void Warn(string message);
- void Error(string message, Exception ex = null);
- void Fatal(string message, Exception ex = null);
- }
- }
|