ILogger.cs 647 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SKMC.Api.Common.Logger
  7. {
  8. /// <summary>
  9. /// 通用的日志接口
  10. /// </summary>
  11. public interface ILogger
  12. {
  13. /// <summary>
  14. /// 调试跟踪(预留)
  15. /// </summary>
  16. /// <param name="message"></param>
  17. void Trace(string message);
  18. void Debug(string message);
  19. void Info(string message);
  20. void Warn(string message);
  21. void Error(string message, Exception ex = null);
  22. void Fatal(string message, Exception ex = null);
  23. }
  24. }