ILogger.cs 745 B

1234567891011121314151617181920212223242526272829303132
  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 Error(Exception ex,string message);
  23. void Fatal(string message, Exception ex = null);
  24. void Fatal(Exception ex,string message);
  25. }
  26. }